Skip to content

Commit 010f746

Browse files
author
David Saff
committed
Merge pull request #554 from matthewfarwell/parameterized-javadoc
Fixes #553, formatted sample code in javadoc
2 parents 3c1956a + 70e2f2e commit 010f746

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

src/main/java/org/junit/runners/Parameterized.java

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@
3030
* <pre>
3131
* &#064;RunWith(Parameterized.class)
3232
* public class FibonacciTest {
33-
* &#064;Parameters(name= &quot;{index}: fib({0})={1}&quot;)
34-
* public static Iterable&lt;Object[]&gt; data() {
35-
* return Arrays.asList(new Object[][] { { 0, 0 }, { 1, 1 }, { 2, 1 },
33+
* &#064;Parameters(name= &quot;{index}: fib[{0}]={1}&quot;)
34+
* public static Iterable&lt;Object[]&gt; data() {
35+
* return Arrays.asList(new Object[][] { { 0, 0 }, { 1, 1 }, { 2, 1 },
3636
* { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 } });
3737
* }
3838
*
39-
* private int fInput;
39+
* private int fInput;
4040
*
41-
* private int fExpected;
41+
* private int fExpected;
4242
*
43-
* public FibonacciTest(int input, int expected) {
44-
* fInput= input;
45-
* fExpected= expected;
43+
* public FibonacciTest(int input, int expected) {
44+
* fInput= input;
45+
* fExpected= expected;
4646
* }
4747
*
48-
* &#064;Test
49-
* public void test() {
50-
* assertEquals(fExpected, Fibonacci.compute(fInput));
48+
* &#064;Test
49+
* public void test() {
50+
* assertEquals(fExpected, Fibonacci.compute(fInput));
5151
* }
5252
* }
5353
* </pre>
@@ -85,7 +85,8 @@
8585
* public static Iterable&lt;Object[]&gt; data() {
8686
* return Arrays.asList(new Object[][] { { 0, 0 }, { 1, 1 }, { 2, 1 },
8787
* { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 } });
88-
* }
88+
* }
89+
*
8990
* &#064;Parameter(0)
9091
* public int fInput;
9192
*
@@ -95,7 +96,7 @@
9596
* &#064;Test
9697
* public void test() {
9798
* assertEquals(fExpected, Fibonacci.compute(fInput));
98-
* }
99+
* }
99100
* }
100101
* </pre>
101102
*

0 commit comments

Comments
 (0)