modules/base/src/test/java/test/com/sun/javafx/binding/SelectBindingTest.java

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


   5  * This code is free software; you can redistribute it and/or modify it
   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 package com.sun.javafx.binding;
  26 

  27 import java.beans.PropertyChangeListener;
  28 import java.beans.PropertyChangeSupport;
  29 import java.util.ArrayList;
  30 import java.util.Arrays;
  31 import java.util.List;
  32 import java.util.Random;
  33 import javafx.beans.Person;
  34 import javafx.beans.binding.Bindings;
  35 import javafx.beans.binding.BooleanBinding;
  36 import javafx.beans.binding.DoubleBinding;
  37 import javafx.beans.binding.FloatBinding;
  38 import javafx.beans.binding.IntegerBinding;
  39 import javafx.beans.binding.LongBinding;
  40 import javafx.beans.binding.ObjectBinding;
  41 import javafx.beans.binding.StringBinding;
  42 import javafx.binding.Variable;
  43 import javafx.collections.ObservableList;
  44 import sun.util.logging.PlatformLogger.Level;
  45 import org.junit.AfterClass;
  46 import org.junit.Before;
  47 import org.junit.BeforeClass;
  48 import org.junit.Test;
  49 
  50 import static org.junit.Assert.*;
  51 
  52 public class SelectBindingTest {
  53 
  54     private static final double EPSILON_DOUBLE = 1e-12;
  55     private static final float EPSILON_FLOAT = 1e-6f;
  56 
  57     public static class POJOPerson {
  58 
  59         private String name;
  60 
  61         public String getName() {
  62             return name;




   5  * This code is free software; you can redistribute it and/or modify it
   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 package test.com.sun.javafx.binding;
  26 
  27 import com.sun.javafx.binding.Logging;
  28 import java.beans.PropertyChangeListener;
  29 import java.beans.PropertyChangeSupport;
  30 import java.util.ArrayList;
  31 import java.util.Arrays;
  32 import java.util.List;
  33 import java.util.Random;
  34 import test.javafx.beans.Person;
  35 import javafx.beans.binding.Bindings;
  36 import javafx.beans.binding.BooleanBinding;
  37 import javafx.beans.binding.DoubleBinding;
  38 import javafx.beans.binding.FloatBinding;
  39 import javafx.beans.binding.IntegerBinding;
  40 import javafx.beans.binding.LongBinding;
  41 import javafx.beans.binding.ObjectBinding;
  42 import javafx.beans.binding.StringBinding;
  43 import test.javafx.binding.Variable;
  44 import javafx.collections.ObservableList;
  45 import sun.util.logging.PlatformLogger.Level;
  46 import org.junit.AfterClass;
  47 import org.junit.Before;
  48 import org.junit.BeforeClass;
  49 import org.junit.Test;
  50 
  51 import static org.junit.Assert.*;
  52 
  53 public class SelectBindingTest {
  54 
  55     private static final double EPSILON_DOUBLE = 1e-12;
  56     private static final float EPSILON_FLOAT = 1e-6f;
  57 
  58     public static class POJOPerson {
  59 
  60         private String name;
  61 
  62         public String getName() {
  63             return name;