Skip to content

Commit 69a8f05

Browse files
gselzerctrueden
authored andcommitted
Delete unnecessary OpPriorityTest test
This test was deleted for two reasons: 1) It is not future proof: it assumes that the Op within MathOpCollection will always be the highest priority, which it might not always be 2) Since the matcher now wraps up all returns into Ops (assuming there is a method to do so), the information that the test used to confirm the origin of the Op can no longer be accessed.
1 parent edab868 commit 69a8f05

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

src/test/java/org/scijava/ops/OpPriorityTest.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,12 @@
3030
package org.scijava.ops;
3131
import static org.junit.Assert.assertTrue;
3232

33-
import java.util.function.BiFunction;
34-
3533
import org.junit.Test;
3634
import org.scijava.core.Priority;
3735
import org.scijava.ops.core.Op;
3836
import org.scijava.ops.core.Source;
3937
import org.scijava.ops.types.Nil;
4038
import org.scijava.param.Parameter;
41-
import org.scijava.param.ValidityException;
4239
import org.scijava.plugin.Plugin;
4340
import org.scijava.struct.ItemIO;
4441

@@ -62,23 +59,6 @@ public Number create() {
6259
}
6360
}
6461

65-
66-
Nil<Double> nilDouble = new Nil<Double>() {
67-
};
68-
69-
@Test
70-
public void testOpCollection() throws ValidityException {
71-
BiFunction<Double, Double, Double> divFunction = ops.findOp( //
72-
"math.add", new Nil<BiFunction<Double, Double, Double>>() {
73-
}, //
74-
new Nil[] { nilDouble, nilDouble }, //
75-
nilDouble//
76-
);
77-
78-
// The found op is assumed to come from the MathOpCollection
79-
assertTrue(divFunction.getClass().getName().contains("MathOpCollection$$Lambda"));
80-
}
81-
8262
@Test
8363
public void testOpPriority() {
8464

0 commit comments

Comments
 (0)