Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use the same name as in the test. Fix documentation.

  • Loading branch information...
commit 6a3cec9cb371e18c697db4b0e67ea30f35ce9231 1 parent 1379441
@stefanbirkner stefanbirkner authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/org/junit/runners/Parameterized.java
View
6 src/main/java/org/junit/runners/Parameterized.java
@@ -28,7 +28,7 @@
* <pre>
* &#064;RunWith(Parameterized.class)
* 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() {
* return Arrays.asList(new Object[][] { { 0, 0 }, { 1, 1 }, { 2, 1 },
* { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 } });
@@ -70,8 +70,8 @@
* <dd></dd>
* </dl>
* 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
- * the current parameter index is used as name.
+ * names like <code>[1: fib(3)=2]</code>. If you don't use the name parameter,
+ * then the current parameter index is used as name.
* </p>
*/
public class Parameterized extends Suite {
Please sign in to comment.
Something went wrong with that request. Please try again.