functional/ControlsTests/test/javafx/scene/control/test/pagination/TestBase.java

Print this page

        

@@ -22,11 +22,11 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 package javafx.scene.control.test.pagination;
 
-import com.sun.javafx.scene.control.skin.LabeledText;
+import com.sun.javafx.scene.control.LabeledText;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Comparator;
 import javafx.geometry.Orientation;
 import javafx.scene.Node;

@@ -145,11 +145,11 @@
             }
         }, 1);
     }
 
     protected void checkScrollingOfFormComponentScrollBar() {
-        Wrap<? extends ScrollBar> scrollBar = findScrollBar(testedControl.as(Parent.class, Node.class), Orientation.HORIZONTAL, true);
+        Wrap<? extends ScrollBar> scrollBar = findScrollBar((Parent<Node>)testedControl.as(Parent.class, Node.class), Orientation.HORIZONTAL, true);
         scrollBar.mouse().turnWheel(-1);
         testedControl.waitState(new State<Integer>() {
             public Integer reached() {
                 return Integer.parseInt(findTextField(FORM_SCROLL_TEXT_FIELD_ID).getControl().getText());
             }

@@ -271,11 +271,11 @@
             assertTrue(sb.getMin() == sb.getValue());
         }
     }
 
     protected Wrap<? extends ScrollBar> getScrollbarWrap(boolean visible) {
-        return findScrollBar(testedControl.as(Parent.class, Node.class), Orientation.VERTICAL, visible);
+        return findScrollBar((Parent<Node>)testedControl.as(Parent.class, Node.class), Orientation.VERTICAL, visible);
     }
 
     protected void checkNumberOfVisiblePageIndeces(int expectedIndeces) {
         checkRightPageIndecesOrderAndContinuousOrder();
         Wrap<? extends LabeledText>[] array = getSortedPageIndeces();