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.beans.property;
27
28 import static org.junit.Assert.assertEquals;
29 import static org.junit.Assert.assertFalse;
30 import static org.junit.Assert.assertTrue;
31
32 import javafx.beans.InvalidationListenerMock;
33 import javafx.beans.value.ChangeListenerMock;
34 import javafx.beans.value.ObservableObjectValueStub;
35
36 import org.junit.Before;
37 import org.junit.Test;
38
39 public class ObjectPropertyBaseTest {
40
41 private static final Object NO_BEAN = null;
42 private static final String NO_NAME_1 = null;
43 private static final String NO_NAME_2 = "";
44 private static final Object UNDEFINED = new Object();
45 private static final Object VALUE_1a = new Object();
46 private static final Object VALUE_1b = new Object();
47 private static final Object VALUE_2a = new Object();
48 private static final Object VALUE_2b = new Object();
49
50 private ObjectPropertyMock property;
51 private InvalidationListenerMock invalidationListener;
52 private ChangeListenerMock<Object> changeListener;
53
|
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.beans.property;
27
28 import javafx.beans.property.ObjectProperty;
29 import javafx.beans.property.ObjectPropertyBase;
30 import javafx.beans.property.SimpleObjectProperty;
31 import static org.junit.Assert.assertEquals;
32 import static org.junit.Assert.assertFalse;
33 import static org.junit.Assert.assertTrue;
34
35 import test.javafx.beans.InvalidationListenerMock;
36 import test.javafx.beans.value.ChangeListenerMock;
37 import javafx.beans.value.ObservableObjectValueStub;
38
39 import org.junit.Before;
40 import org.junit.Test;
41
42 public class ObjectPropertyBaseTest {
43
44 private static final Object NO_BEAN = null;
45 private static final String NO_NAME_1 = null;
46 private static final String NO_NAME_2 = "";
47 private static final Object UNDEFINED = new Object();
48 private static final Object VALUE_1a = new Object();
49 private static final Object VALUE_1b = new Object();
50 private static final Object VALUE_2a = new Object();
51 private static final Object VALUE_2b = new Object();
52
53 private ObjectPropertyMock property;
54 private InvalidationListenerMock invalidationListener;
55 private ChangeListenerMock<Object> changeListener;
56
|