Kaynağa Gözat

Merge pull request #449 from FridaTveit/AccumulateAddIgnoreHint

accumulate: add hint to @Ignore annotations
John Ryan 9 yıl önce
ebeveyn
işleme
8df6bff67d

+ 4
- 4
exercises/accumulate/src/test/java/AccumulateTest.java Dosyayı Görüntüle

17
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x * x));
17
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x * x));
18
     }
18
     }
19
 
19
 
20
-    @Ignore
20
+    @Ignore("Remove to run test")
21
     @Test
21
     @Test
22
     public void accumulateSquares() {
22
     public void accumulateSquares() {
23
         List<Integer> input = Arrays.asList(1, 2, 3);
23
         List<Integer> input = Arrays.asList(1, 2, 3);
25
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x * x));
25
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x * x));
26
     }
26
     }
27
 
27
 
28
-    @Ignore
28
+    @Ignore("Remove to run test")
29
     @Test
29
     @Test
30
     public void accumulateUpperCases() {
30
     public void accumulateUpperCases() {
31
         List<String> input = Arrays.asList("hello", "world");
31
         List<String> input = Arrays.asList("hello", "world");
33
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x.toUpperCase()));
33
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x.toUpperCase()));
34
     }
34
     }
35
 
35
 
36
-    @Ignore
36
+    @Ignore("Remove to run test")
37
     @Test
37
     @Test
38
     public void accumulateReversedStrings() {
38
     public void accumulateReversedStrings() {
39
         List<String> input = Arrays.asList("the quick brown fox etc".split(" "));
39
         List<String> input = Arrays.asList("the quick brown fox etc".split(" "));
45
         return new StringBuilder(input).reverse().toString();
45
         return new StringBuilder(input).reverse().toString();
46
     }
46
     }
47
 
47
 
48
-    @Ignore
48
+    @Ignore("Remove to run test")
49
     @Test
49
     @Test
50
     public void accumulateWithinAccumulate() {
50
     public void accumulateWithinAccumulate() {
51
         List<String> input1 = Arrays.asList("a", "b", "c");
51
         List<String> input1 = Arrays.asList("a", "b", "c");