< prev index next >
modules/javafx.base/src/test/java/test/com/sun/javafx/binding/SelectBindingTest.java
Print this page
*** 22,32 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package test.com.sun.javafx.binding;
- import com.sun.javafx.binding.Logging;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
--- 22,31 ----
*** 402,412 ****
assertEquals("a", select.get());
a.setName("b");
assertEquals("b", select.get());
a.setName(null);
assertNull(select.get());
! log.check(java.util.logging.Level.WARNING, NullPointerException.class);
}
@Test(expected = NullPointerException.class)
public void createWithOneStepIsNull() {
select = Bindings.selectString(a.nextProperty(), null, "name");
--- 401,411 ----
assertEquals("a", select.get());
a.setName("b");
assertEquals("b", select.get());
a.setName(null);
assertNull(select.get());
! log.checkWarning(NullPointerException.class);
}
@Test(expected = NullPointerException.class)
public void createWithOneStepIsNull() {
select = Bindings.selectString(a.nextProperty(), null, "name");
*** 414,424 ****
@Test
public void testNullIsReturnedFromAChainWithAPropertyThatIsNotOnTheAvailableObject() {
select = Bindings.selectString(a.nextProperty(), "dummy", "name");
assertNull(select.get());
! log.check(java.util.logging.Level.WARNING, NoSuchMethodException.class);
}
@SuppressWarnings("unchecked")
@Test
public void testAllMembersHaveListeners() {
--- 413,423 ----
@Test
public void testNullIsReturnedFromAChainWithAPropertyThatIsNotOnTheAvailableObject() {
select = Bindings.selectString(a.nextProperty(), "dummy", "name");
assertNull(select.get());
! log.checkWarning(NoSuchMethodException.class);
}
@SuppressWarnings("unchecked")
@Test
public void testAllMembersHaveListeners() {
< prev index next >