changeset 248:d2e3815f73f9

RT-18864: RuTaskCancelTest still did not compile since RunAwayTask is abstract. Added missing method as no-op.
author David Grieve<david.grieve@oracle.com>
date Tue, 10 Jan 2012 20:52:49 -0500
parents 0a4321c889a3
children f5523d287d74
files javafx-concurrent/test/javafx/concurrent/TaskCancelTest.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-concurrent/test/javafx/concurrent/TaskCancelTest.java	Tue Jan 10 20:46:39 2012 -0500
+++ b/javafx-concurrent/test/javafx/concurrent/TaskCancelTest.java	Tue Jan 10 20:52:49 2012 -0500
@@ -27,6 +27,7 @@
 
 import javafx.concurrent.mocks.EpicFailTask;
 import javafx.concurrent.mocks.InfiniteTask;
+import javafx.concurrent.mocks.RunAwayTask;
 import javafx.concurrent.mocks.SimpleTask;
 import org.junit.Before;
 import org.junit.Test;
@@ -123,7 +124,10 @@
      *
      */
     @Test public void aFreeRunningCancelledTaskReturnValueShouldBeIgnored() throws Exception {
-        RunAwayTask runAway = new RunAwayTask();
+        RunAwayTask runAway = new RunAwayTask() {
+                protected void loop(int count) throws Exception {
+                }
+        };
         Thread th = new Thread(runAway);
         th.start();
         runAway.runningSemaphore.acquire();