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.ObservableDoubleValueStub;
35 import javafx.beans.value.ObservableValueStub;
36
37 import org.junit.Before;
38 import org.junit.Test;
39
40 public class DoublePropertyBaseTest {
41
42 private static final Object NO_BEAN = null;
43 private static final String NO_NAME_1 = null;
44 private static final String NO_NAME_2 = "";
45 private static final Double UNDEFINED = Double.MAX_VALUE;
46 private static final double EPSILON = 1e-12;
47
48 private DoublePropertyMock property;
49 private InvalidationListenerMock invalidationListener;
50 private ChangeListenerMock<Number> changeListener;
51
52 @Before
53 public void setUp() throws Exception {
|
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.DoubleProperty;
29 import javafx.beans.property.DoublePropertyBase;
30 import javafx.beans.property.SimpleDoubleProperty;
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.ObservableDoubleValueStub;
38 import javafx.beans.value.ObservableValueStub;
39
40 import org.junit.Before;
41 import org.junit.Test;
42
43 public class DoublePropertyBaseTest {
44
45 private static final Object NO_BEAN = null;
46 private static final String NO_NAME_1 = null;
47 private static final String NO_NAME_2 = "";
48 private static final Double UNDEFINED = Double.MAX_VALUE;
49 private static final double EPSILON = 1e-12;
50
51 private DoublePropertyMock property;
52 private InvalidationListenerMock invalidationListener;
53 private ChangeListenerMock<Number> changeListener;
54
55 @Before
56 public void setUp() throws Exception {
|