Skip to content

Commit 70ef3f4

Browse files
committed
AbstractColocTest: extend AbstractOpTest
Consolidates and eliminates repeated code.
1 parent f1391a3 commit 70ef3f4

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

‎imagej/imagej-ops2/src/test/java/net/imagej/ops2/AbstractColocalisationTest.java‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
import org.scijava.threads.ThreadManager;
6262

6363
/** Abstract base class for coloc op unit tests. */
64-
public abstract class AbstractColocalisationTest {
64+
public abstract class AbstractColocalisationTest extends AbstractOpTest {
6565

6666
// images and meta data for zero correlation
6767
protected Img<UnsignedByteType> zeroCorrelationImageCh1;
@@ -72,15 +72,6 @@ public abstract class AbstractColocalisationTest {
7272
protected Img<UnsignedByteType> positiveCorrelationImageCh1;
7373
protected Img<UnsignedByteType> positiveCorrelationImageCh2;
7474

75-
protected static OpEnvironment ops;
76-
protected static ThreadManager threads;
77-
78-
@BeforeAll
79-
public static void setUp() {
80-
ops = new DefaultOpEnvironment();
81-
threads = new DefaultThreadManager();
82-
}
83-
8475
protected static OpBuilder op(String name) {
8576
return ops.op(name);
8677
}

0 commit comments

Comments
 (0)