diff --git a/src/main/java/org/junit/runners/Parameterized.java b/src/main/java/org/junit/runners/Parameterized.java index cfa694bc5649..98f86bd5eb0f 100644 --- a/src/main/java/org/junit/runners/Parameterized.java +++ b/src/main/java/org/junit/runners/Parameterized.java @@ -30,24 +30,24 @@ *
  * @RunWith(Parameterized.class)
  * public class FibonacciTest {
- * 	@Parameters(name= "{index}: fib({0})={1}")
- * 	public static Iterable<Object[]> data() {
- * 		return Arrays.asList(new Object[][] { { 0, 0 }, { 1, 1 }, { 2, 1 },
+ *     @Parameters(name= "{index}: fib[{0}]={1}")
+ *     public static Iterable<Object[]> data() {
+ *         return Arrays.asList(new Object[][] { { 0, 0 }, { 1, 1 }, { 2, 1 },
  *                 { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 } });
  *     }
  *
- * 	private int fInput;
+ *     private int fInput;
  *
- * 	private int fExpected;
+ *     private int fExpected;
  *
- * 	public FibonacciTest(int input, int expected) {
- * 		fInput= input;
- * 		fExpected= expected;
+ *     public FibonacciTest(int input, int expected) {
+ *         fInput= input;
+ *         fExpected= expected;
  *     }
  *
- * 	@Test
- * 	public void test() {
- * 		assertEquals(fExpected, Fibonacci.compute(fInput));
+ *     @Test
+ *     public void test() {
+ *         assertEquals(fExpected, Fibonacci.compute(fInput));
  *     }
  * }
  * 
@@ -85,7 +85,8 @@ * public static Iterable<Object[]> data() { * return Arrays.asList(new Object[][] { { 0, 0 }, { 1, 1 }, { 2, 1 }, * { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 } }); - * } + * } + * * @Parameter(0) * public int fInput; * @@ -95,7 +96,7 @@ * @Test * public void test() { * assertEquals(fExpected, Fibonacci.compute(fInput)); - * } + * } * } * *