Skip to content

Commit cb21d1f

Browse files
committed
OpBuilderTest: use HTML lists in javadoc
This is a better option going forward, and we now do not have to mess with the Eclipse formatter.
1 parent dd4ec49 commit cb21d1f

2 files changed

Lines changed: 72 additions & 50 deletions

File tree

‎scijava/scijava-ops/src/test/java/org/scijava/ops/core/builder/OpBuilderTest.java‎

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,36 +43,47 @@
4343
import org.scijava.ops.function.Inplaces;
4444
import org.scijava.ops.function.Producer;
4545

46-
// @formatter:off
4746
/**
48-
* Tests {@link OpBuilder}.
49-
*
50-
* For each arity, we test the following matches and run the following commands
51-
* based on the information scenarios.
52-
*
53-
* * Input TYPES are given (IT)
54-
* 1) The output is unspecified (OU):
55-
* a) match: Function, Inplace
56-
* b) run: none
57-
* 2) The output type is given (OT):
58-
* a) match: Function, Computer
59-
* b) run: none
60-
*
61-
* * Input VALUES are given (IV) (N.B. this case applies for Arity0):
62-
* 1) The output is unspecified (OU):
63-
* a) match: Function, Inplace
64-
* b) run: apply, mutate
65-
* 2) The output type is given (OT):
66-
* a) match: Function, Computer
67-
* b) run: apply
68-
* 3) The output value is given (OV):
69-
* a) match: Computer
70-
* b) run: compute
47+
* Tests {@link OpBuilder}. For each arity, we test the following matches and
48+
* run the following commands based on the information scenarios.
49+
* <p>
50+
* Input TYPES are given (IT):
51+
* <p>
52+
* <ol>
53+
* <li>The output is unspecified (OU):
54+
* <ol type="a">
55+
* <li>match: Function, Inplace
56+
* <li>run: none
57+
* </ol>
58+
* <li>The output type is given (OT):
59+
* <ol type="a">
60+
* <li>match: Function, Computer
61+
* <li>run: none
62+
* </ol>
63+
* </ol>
64+
* Input VALUES are given (IV) (N.B. this case applies for Arity0):
65+
* <p>
66+
* <ol>
67+
* <li>The output is unspecified (OU):
68+
* <ol type="a">
69+
* <li>match: Function, Inplace
70+
* <li>run: apply, mutate
71+
* </ol>
72+
* <li>The output type is given (OT):
73+
* <ol type="a">
74+
* <li>match: Function, Computer
75+
* <li>run: apply
76+
* </ol>
77+
* <li>The output value is given (OV):
78+
* <ol type="a">
79+
* <li>match: Computer
80+
* <li>run: compute
81+
* </ol>
82+
* </ol>
7183
*
7284
* @author Curtis Rueden
7385
* @author Gabriel Selzer
7486
*/
75-
// @formatter:on
7687
public class OpBuilderTest extends AbstractTestEnvironment {
7788

7889
final double[] halves = new double[10];

‎scijava/scijava-ops/templates/test/java/org/scijava/ops/core/builder/OpBuilderTest.vm‎

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,36 +43,47 @@ import org.scijava.ops.function.Functions;
4343
import org.scijava.ops.function.Inplaces;
4444
import org.scijava.ops.function.Producer;
4545

46-
// @formatter:off
4746
/**
48-
* Tests {@link OpBuilder}.
49-
*
50-
* For each arity, we test the following matches and run the following commands
51-
* based on the information scenarios.
52-
*
53-
* * Input TYPES are given (IT)
54-
* 1) The output is unspecified (OU):
55-
* a) match: Function, Inplace
56-
* b) run: none
57-
* 2) The output type is given (OT):
58-
* a) match: Function, Computer
59-
* b) run: none
60-
*
61-
* * Input VALUES are given (IV) (N.B. this case applies for Arity0):
62-
* 1) The output is unspecified (OU):
63-
* a) match: Function, Inplace
64-
* b) run: apply, mutate
65-
* 2) The output type is given (OT):
66-
* a) match: Function, Computer
67-
* b) run: apply
68-
* 3) The output value is given (OV):
69-
* a) match: Computer
70-
* b) run: compute
47+
* Tests {@link OpBuilder}. For each arity, we test the following matches and
48+
* run the following commands based on the information scenarios.
49+
* <p>
50+
* Input TYPES are given (IT):
51+
* <p>
52+
* <ol>
53+
* <li>The output is unspecified (OU):
54+
* <ol type="a">
55+
* <li>match: Function, Inplace
56+
* <li>run: none
57+
* </ol>
58+
* <li>The output type is given (OT):
59+
* <ol type="a">
60+
* <li>match: Function, Computer
61+
* <li>run: none
62+
* </ol>
63+
* </ol>
64+
* Input VALUES are given (IV) (N.B. this case applies for Arity0):
65+
* <p>
66+
* <ol>
67+
* <li>The output is unspecified (OU):
68+
* <ol type="a">
69+
* <li>match: Function, Inplace
70+
* <li>run: apply, mutate
71+
* </ol>
72+
* <li>The output type is given (OT):
73+
* <ol type="a">
74+
* <li>match: Function, Computer
75+
* <li>run: apply
76+
* </ol>
77+
* <li>The output value is given (OV):
78+
* <ol type="a">
79+
* <li>match: Computer
80+
* <li>run: compute
81+
* </ol>
82+
* </ol>
7183
*
7284
* @author Curtis Rueden
7385
* @author Gabriel Selzer
7486
*/
75-
// @formatter:on
7687
public class OpBuilderTest extends AbstractTestEnvironment {
7788

7889
final double[] halves = new double[10];

0 commit comments

Comments
 (0)