modules/graphics/src/test/java/test/javafx/concurrent/TaskSwampEventQueueTest.java

Print this page
rev 9250 : 8134762: Refactor Javafx graphics module tests for clear separation of tests
Reviewed-by:

@@ -21,15 +21,16 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
-package javafx.concurrent;
+package test.javafx.concurrent;
 
 import java.util.ArrayList;
 import java.util.List;
 import java.util.concurrent.CyclicBarrier;
+import javafx.concurrent.Task;
 
 import org.junit.Before;
 import org.junit.Test;
 
 import static org.junit.Assert.*;

@@ -65,15 +66,15 @@
                 }
                 barrier.await(); // I'm done basically
                 return "Sentinel";
             }
 
-            @Override boolean isFxApplicationThread() {
+            @Override public boolean isFxApplicationThread() {
                 return Thread.currentThread() != th;
             }
 
-            @Override void runLater(Runnable r) {
+            @Override public void runLater(Runnable r) {
                 eventQueue.add(r);
             }
         };
     }