< prev index next >

tests/system/src/testapp4/java/mymod/myapp4/AppBindingsQualExported.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 170,186 **** --- 170,188 ---- d.setFoo(2.3); // In this case, the binding will succeed; calling get() will return 0; // the first time it is called it will log a warning. DoubleBinding binding3 = Bindings.selectDouble(root2, "next", "foo"); + System.err.println("The following two WARNING messages are expected:"); assertEquals(0, binding3.get()); // This will log a warning c.setFoo(3.4); assertEquals(0, binding3.get()); // No warning here // In this case, the binding will succeed; calling get() will return null; // the first time it is called it will log a warning. ObjectBinding<MyProps> binding4 = Bindings.select(root2, "next", "next"); + System.err.println("The following two WARNING messages are expected:"); assertSame(null, binding4.get()); // This will log a warning assertSame(null, binding4.get()); // No warning here // Assert that we got 2 warnings final int expectedExceptions = 2; // First call to get for each binding
< prev index next >