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 javafx.beans.InvalidationListenerMock;
29 import javafx.beans.value.ChangeListenerMock;
30
31 import org.junit.Before;
32 import org.junit.Test;
33
34 public class ReadOnlyDoublePropertyBaseTest {
35
36 private static final Double UNDEFINED = null;
37 private static final double DEFAULT = 0.0;
38 private static final double VALUE_1 = -Math.PI;
39 private static final double VALUE_2 = Math.E;
40
41 private ReadOnlyPropertyMock property;
42 private InvalidationListenerMock invalidationListener;
43 private ChangeListenerMock<Number> changeListener;
44
45 @Before
46 public void setUp() throws Exception {
47 property = new ReadOnlyPropertyMock();
48 invalidationListener = new InvalidationListenerMock();
49 changeListener = new ChangeListenerMock<Number>(UNDEFINED);
|
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.ReadOnlyDoublePropertyBase;
29 import test.javafx.beans.InvalidationListenerMock;
30 import test.javafx.beans.value.ChangeListenerMock;
31
32 import org.junit.Before;
33 import org.junit.Test;
34
35 public class ReadOnlyDoublePropertyBaseTest {
36
37 private static final Double UNDEFINED = null;
38 private static final double DEFAULT = 0.0;
39 private static final double VALUE_1 = -Math.PI;
40 private static final double VALUE_2 = Math.E;
41
42 private ReadOnlyPropertyMock property;
43 private InvalidationListenerMock invalidationListener;
44 private ChangeListenerMock<Number> changeListener;
45
46 @Before
47 public void setUp() throws Exception {
48 property = new ReadOnlyPropertyMock();
49 invalidationListener = new InvalidationListenerMock();
50 changeListener = new ChangeListenerMock<Number>(UNDEFINED);
|