modules/controls/src/test/java/javafx/scene/control/SplitPaneTest.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization


  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.scene.control;
  27 
  28 import com.sun.javafx.scene.control.infrastructure.StageLoader;
  29 import javafx.css.CssMetaData;
  30 import static com.sun.javafx.scene.control.infrastructure.ControlTestUtils.*;
  31 
  32 import com.sun.javafx.pgstub.StubToolkit;
  33 import com.sun.javafx.scene.control.skin.SplitPaneSkin;
  34 import com.sun.javafx.tk.Toolkit;
  35 import javafx.application.Platform;
  36 import javafx.beans.property.DoubleProperty;
  37 import javafx.beans.property.ObjectProperty;
  38 import javafx.beans.property.SimpleDoubleProperty;
  39 import javafx.beans.property.SimpleObjectProperty;
  40 import javafx.css.StyleableProperty;
  41 import javafx.geometry.Orientation;
  42 import javafx.scene.Scene;
  43 import javafx.scene.layout.AnchorPane;
  44 import javafx.scene.layout.StackPane;
  45 import javafx.scene.layout.VBox;
  46 import javafx.stage.Stage;
  47 import static org.junit.Assert.*;
  48 
  49 
  50 import org.junit.Before;
  51 import org.junit.Ignore;
  52 import org.junit.Test;
  53 
  54 /**
  55  *
  56  * @author srikalyc
  57  */
  58 public class SplitPaneTest {
  59     private SplitPane splitPane;//Empty string
  60     private SplitPane.Divider divider1;
  61     private SplitPane.Divider divider2;
  62     private Toolkit tk;
  63     private Scene scene;
  64     private Stage stage;
  65     private StackPane root;
  66 
  67     @Before public void setup() {
  68         tk = (StubToolkit)Toolkit.getToolkit();//This step is not needed (Just to make sure StubToolkit is loaded into VM)
  69         splitPane = new SplitPane();
  70         splitPane.setSkin(new SplitPaneSkin(splitPane));
  71         divider1 = new SplitPane.Divider();




  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.scene.control;
  27 
  28 import com.sun.javafx.scene.control.infrastructure.StageLoader;
  29 import javafx.css.CssMetaData;
  30 import static com.sun.javafx.scene.control.infrastructure.ControlTestUtils.*;
  31 
  32 import com.sun.javafx.pgstub.StubToolkit;
  33 import javafx.scene.control.skin.SplitPaneSkin;
  34 import com.sun.javafx.tk.Toolkit;
  35 import javafx.application.Platform;
  36 import javafx.beans.property.DoubleProperty;
  37 import javafx.beans.property.ObjectProperty;
  38 import javafx.beans.property.SimpleDoubleProperty;
  39 import javafx.beans.property.SimpleObjectProperty;
  40 import javafx.css.StyleableProperty;
  41 import javafx.geometry.Orientation;
  42 import javafx.scene.Scene;
  43 import javafx.scene.layout.AnchorPane;
  44 import javafx.scene.layout.StackPane;
  45 import javafx.scene.layout.VBox;
  46 import javafx.stage.Stage;
  47 import static org.junit.Assert.*;
  48 
  49 
  50 import org.junit.Before;

  51 import org.junit.Test;
  52 
  53 /**
  54  *
  55  * @author srikalyc
  56  */
  57 public class SplitPaneTest {
  58     private SplitPane splitPane;//Empty string
  59     private SplitPane.Divider divider1;
  60     private SplitPane.Divider divider2;
  61     private Toolkit tk;
  62     private Scene scene;
  63     private Stage stage;
  64     private StackPane root;
  65 
  66     @Before public void setup() {
  67         tk = (StubToolkit)Toolkit.getToolkit();//This step is not needed (Just to make sure StubToolkit is loaded into VM)
  68         splitPane = new SplitPane();
  69         splitPane.setSkin(new SplitPaneSkin(splitPane));
  70         divider1 = new SplitPane.Divider();