Sfoglia il codice sorgente

Add name to each test case.

John S. Ryan 11 anni fa
parent
commit
8b4fdb7afa
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      prime-factors/src/test/java/PrimeFactorsTest.java

+ 1
- 1
prime-factors/src/test/java/PrimeFactorsTest.java Vedi File

15
     private double input;
15
     private double input;
16
     private List<Integer> expectedOutput;
16
     private List<Integer> expectedOutput;
17
 
17
 
18
-    @Parameters
18
+    @Parameters(name="Prime factors of {0} = {1}")
19
     public static Collection<Object[]> data() {
19
     public static Collection<Object[]> data() {
20
         return Arrays.asList(new Object[][]{
20
         return Arrays.asList(new Object[][]{
21
                 {1, Arrays.asList(new Integer[0])},
21
                 {1, Arrays.asList(new Integer[0])},