6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.binding;
27
28 import com.sun.javafx.collections.annotations.ReturnsUnmodifiableCollection;
29 import javafx.beans.InvalidationListenerMock;
30 import javafx.beans.Observable;
31 import javafx.beans.binding.SetBinding;
32 import javafx.beans.property.ReadOnlyBooleanProperty;
33 import javafx.beans.property.ReadOnlyIntegerProperty;
34 import javafx.beans.value.ChangeListenerMock;
35 import javafx.beans.value.ObservableValueBase;
36 import javafx.collections.FXCollections;
37 import javafx.collections.MockSetObserver;
38 import javafx.collections.ObservableList;
39 import javafx.collections.ObservableSet;
40 import org.junit.Before;
41 import org.junit.Test;
42
43 import static javafx.collections.MockSetObserver.Call;
44 import static org.junit.Assert.*;
45
46 /**
47 */
48 public class SetBindingTest {
49
50 private final static Object DATA_1 = new Object();
51 private final static Object DATA_2_0 = new Object();
52 private final static Object DATA_2_1 = new Object();
53
54 private ObservableStub dependency1;
55 private ObservableStub dependency2;
56
57 private SetBindingImpl binding0;
58 private SetBindingImpl binding1;
59 private SetBindingImpl binding2;
60
61 private ObservableSet<Object> emptySet;
62 private ObservableSet<Object> set1;
63 private ObservableSet<Object> set2;
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package test.javafx.binding;
27
28 import com.sun.javafx.collections.annotations.ReturnsUnmodifiableCollection;
29 import test.javafx.beans.InvalidationListenerMock;
30 import javafx.beans.Observable;
31 import javafx.beans.binding.SetBinding;
32 import javafx.beans.property.ReadOnlyBooleanProperty;
33 import javafx.beans.property.ReadOnlyIntegerProperty;
34 import test.javafx.beans.value.ChangeListenerMock;
35 import javafx.beans.value.ObservableValueBase;
36 import javafx.collections.FXCollections;
37 import test.javafx.collections.MockSetObserver;
38 import javafx.collections.ObservableList;
39 import javafx.collections.ObservableSet;
40 import org.junit.Before;
41 import org.junit.Test;
42
43 import static test.javafx.collections.MockSetObserver.Call;
44 import static org.junit.Assert.*;
45
46 /**
47 */
48 public class SetBindingTest {
49
50 private final static Object DATA_1 = new Object();
51 private final static Object DATA_2_0 = new Object();
52 private final static Object DATA_2_1 = new Object();
53
54 private ObservableStub dependency1;
55 private ObservableStub dependency2;
56
57 private SetBindingImpl binding0;
58 private SetBindingImpl binding1;
59 private SetBindingImpl binding2;
60
61 private ObservableSet<Object> emptySet;
62 private ObservableSet<Object> set1;
63 private ObservableSet<Object> set2;
|