Skip to content

Commit

Permalink
Use the same name as in the test. Fix documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbirkner committed Apr 3, 2012
1 parent 1379441 commit 6a3cec9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/junit/runners/Parameterized.java
Expand Up @@ -28,7 +28,7 @@
* <pre> * <pre>
* &#064;RunWith(Parameterized.class) * &#064;RunWith(Parameterized.class)
* public class FibonacciTest { * public class FibonacciTest {
* &#064;Parameters(name= &quot;fib({0})={1}&quot;) * &#064;Parameters(name= &quot;{index}: fib({0})={1}&quot;)
* public static Iterable&lt;Object[]&gt; data() { * public static Iterable&lt;Object[]&gt; data() {
* return Arrays.asList(new Object[][] { { 0, 0 }, { 1, 1 }, { 2, 1 }, * return Arrays.asList(new Object[][] { { 0, 0 }, { 1, 1 }, { 2, 1 },
* { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 } }); * { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 } });
Expand Down Expand Up @@ -70,8 +70,8 @@
* <dd></dd> * <dd></dd>
* </dl> * </dl>
* In the example given above, the <code>Parameterized</code> runner creates * In the example given above, the <code>Parameterized</code> runner creates
* names like <code>fib(3)=2</code>. If you don't use the name parameter, then * names like <code>[1: fib(3)=2]</code>. If you don't use the name parameter,
* the current parameter index is used as name. * then the current parameter index is used as name.
* </p> * </p>
*/ */
public class Parameterized extends Suite { public class Parameterized extends Suite {
Expand Down

0 comments on commit 6a3cec9

Please sign in to comment.