modules/base/src/test/java/test/javafx/beans/property/ReadOnlyListPropertyBaseTest.java

Print this page
rev 9235 : 8134760: Refactor Javafx base module tests for clear separation of tests
Reviewed-by:

*** 21,34 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package javafx.beans.property; ! import javafx.beans.InvalidationListenerMock; ! import javafx.beans.value.ChangeListenerMock; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import org.junit.Before; import org.junit.Test; --- 21,38 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package test.javafx.beans.property; ! import javafx.beans.property.ReadOnlyBooleanProperty; ! import javafx.beans.property.ReadOnlyIntegerProperty; ! import javafx.beans.property.ReadOnlyListPropertyBase; ! import javafx.beans.property.ReadOnlyListPropertyBaseShim; ! import test.javafx.beans.InvalidationListenerMock; ! import test.javafx.beans.value.ChangeListenerMock; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import org.junit.Before; import org.junit.Test;
*** 94,104 **** return null; } private void set(ObservableList<Object> value) { this.value = value; ! fireValueChangedEvent(); } @Override public ObservableList<Object> get() { return value; --- 98,108 ---- return null; } private void set(ObservableList<Object> value) { this.value = value; ! ReadOnlyListPropertyBaseShim.fireValueChangedEvent(this); } @Override public ObservableList<Object> get() { return value;