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

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

*** 21,38 **** * 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; import java.util.Arrays; import java.util.Collection; import java.util.concurrent.atomic.AtomicBoolean; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; ! import javafx.concurrent.mocks.EpicFailTask; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import static org.junit.Assert.*; --- 21,39 ---- * 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 test.javafx.concurrent; import java.util.Arrays; import java.util.Collection; import java.util.concurrent.atomic.AtomicBoolean; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; ! import javafx.concurrent.Worker; ! import test.javafx.concurrent.mocks.EpicFailTask; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import static org.junit.Assert.*;
*** 59,69 **** this.exception = th; } @Override protected TestServiceFactory setupServiceFactory() { return new TestServiceFactory() { ! @Override protected AbstractTask createTestTask() { return new EpicFailTask(ServiceExceptionTest.this.exception); } }; } --- 60,70 ---- this.exception = th; } @Override protected TestServiceFactory setupServiceFactory() { return new TestServiceFactory() { ! @Override public AbstractTask createTestTask() { return new EpicFailTask(ServiceExceptionTest.this.exception); } }; }