< prev index next >

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

Print this page

        

@@ -319,11 +319,11 @@
     }
 
     protected void checkScrollingState(final double scrollValue, boolean beginVisible, boolean endVisible, int size) {
         testedControl.waitState(new State() {
             public Object reached() {
-                Wrap<? extends ScrollBar> sb = findScrollBar(testedControl.as(Parent.class, Node.class), Orientation.VERTICAL, true);
+                Wrap<? extends ScrollBar> sb = findScrollBar((Parent<Node>)testedControl.as(Parent.class, Node.class), Orientation.VERTICAL, true);
                 if (Math.abs(sb.getControl().getValue() - scrollValue) < 0.01) {
                     return true;
                 } else {
                     return null;
                 }
< prev index next >