Explorar el Código

Mark all but first test @Ignore in all exercises

- in journey test, remove @Ignores so that test runs exercise all tests.
- increase the verbosity of test logging to aide in seeing progress as
  tests are un@Ignored and solved.
- saving scripts used to make changes to all exercises.  These are the
  start of a library of scripts making such changes easier.
- make Gradle output more CI-friendly.
John S. Ryan hace 10 años
padre
commit
35adc66f37
Se han modificado 86 ficheros con 693 adiciones y 21 borrados
  1. 7
    0
      bin/journey-test.sh
  2. 4
    1
      config.json
  3. 6
    0
      exercises/_template/build.gradle
  4. 6
    0
      exercises/accumulate/build.gradle
  5. 6
    0
      exercises/accumulate/src/test/java/AccumulateTest.java
  6. 6
    0
      exercises/acronym/build.gradle
  7. 8
    0
      exercises/acronym/src/test/java/AcronymTest.java
  8. 6
    0
      exercises/allergies/build.gradle
  9. 20
    0
      exercises/allergies/src/test/java/AllergiesTest.java
  10. 6
    0
      exercises/anagram/build.gradle
  11. 11
    0
      exercises/anagram/src/test/java/AnagramTest.java
  12. 6
    0
      exercises/atbash-cipher/build.gradle
  13. 5
    2
      exercises/atbash-cipher/src/test/java/AtbashTest.java
  14. 6
    0
      exercises/beer-song/build.gradle
  15. 5
    1
      exercises/beer-song/src/test/java/BeerSongTest.java
  16. 6
    0
      exercises/binary/build.gradle
  17. 2
    0
      exercises/binary/src/test/java/BinaryTest.java
  18. 6
    0
      exercises/bob/build.gradle
  19. 19
    0
      exercises/bob/src/test/java/BobTest.java
  20. 1
    1
      exercises/build.gradle
  21. 6
    0
      exercises/crypto-square/build.gradle
  22. 16
    0
      exercises/crypto-square/src/test/java/CryptoSquareTest.java
  23. 6
    0
      exercises/etl/build.gradle
  24. 5
    0
      exercises/etl/src/test/java/EtlTest.java
  25. 6
    0
      exercises/gigasecond/build.gradle
  26. 6
    0
      exercises/gigasecond/src/test/java/GigasecondTest.java
  27. 6
    0
      exercises/grade-school/build.gradle
  28. 15
    7
      exercises/grade-school/src/test/java/SchoolTest.java
  29. 6
    0
      exercises/hamming/build.gradle
  30. 10
    0
      exercises/hamming/src/test/java/HammingTest.java
  31. 6
    0
      exercises/hello-world/build.gradle
  32. 2
    0
      exercises/hello-world/src/test/java/HelloWorldTest.java
  33. 6
    0
      exercises/hexadecimal/build.gradle
  34. 11
    0
      exercises/hexadecimal/src/test/java/HexadecimalTest.java
  35. 6
    0
      exercises/linked-list/build.gradle
  36. 6
    0
      exercises/linked-list/src/test/java/DequeTest.java
  37. 6
    0
      exercises/luhn/build.gradle
  38. 11
    0
      exercises/luhn/src/test/java/LuhnTest.java
  39. 6
    0
      exercises/meetup/build.gradle
  40. 92
    0
      exercises/meetup/src/test/java/MeetupTest.java
  41. 6
    0
      exercises/nth-prime/build.gradle
  42. 6
    0
      exercises/nth-prime/src/test/java/PrimeTest.java
  43. 6
    0
      exercises/nucleotide-count/build.gradle
  44. 19
    9
      exercises/nucleotide-count/src/test/java/NucleotideTest.java
  45. 6
    0
      exercises/octal/build.gradle
  46. 2
    0
      exercises/octal/src/test/java/OctalTest.java
  47. 6
    0
      exercises/pangram/build.gradle
  48. 6
    0
      exercises/pangram/src/test/java/PangramTest.java
  49. 6
    0
      exercises/pascals-triangle/build.gradle
  50. 7
    0
      exercises/pascals-triangle/src/test/java/PascalsTriangleTest.java
  51. 6
    0
      exercises/phone-number/build.gradle
  52. 9
    0
      exercises/phone-number/src/test/java/PhoneNumberTest.java
  53. 6
    0
      exercises/pig-latin/build.gradle
  54. 2
    0
      exercises/pig-latin/src/test/java/PigLatinTest.java
  55. 6
    0
      exercises/prime-factors/build.gradle
  56. 2
    0
      exercises/prime-factors/src/test/java/PrimeFactorsTest.java
  57. 6
    0
      exercises/raindrops/build.gradle
  58. 2
    0
      exercises/raindrops/src/test/java/RaindropsTest.java
  59. 6
    0
      exercises/rna-transcription/build.gradle
  60. 7
    0
      exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java
  61. 6
    0
      exercises/robot-name/build.gradle
  62. 4
    0
      exercises/robot-name/src/test/java/RobotTest.java
  63. 6
    0
      exercises/roman-numerals/build.gradle
  64. 2
    0
      exercises/roman-numerals/src/test/java/RomanNumeralsTest.java
  65. 6
    0
      exercises/scrabble-score/build.gradle
  66. 2
    0
      exercises/scrabble-score/src/test/java/ScrabbleScoreTest.java
  67. 6
    0
      exercises/sieve/build.gradle
  68. 4
    0
      exercises/sieve/src/test/java/SieveTest.java
  69. 6
    0
      exercises/simple-cipher/build.gradle
  70. 6
    0
      exercises/simple-cipher/src/test/java/IncorrectKeyCipherTest.java
  71. 7
    0
      exercises/simple-cipher/src/test/java/RandomKeyCipherTest.java
  72. 9
    0
      exercises/simple-cipher/src/test/java/SubstitutionCipherTest.java
  73. 6
    0
      exercises/simple-linked-list/build.gradle
  74. 8
    0
      exercises/simple-linked-list/src/test/java/SimpleLinkedListTest.java
  75. 6
    0
      exercises/space-age/build.gradle
  76. 10
    0
      exercises/space-age/src/test/java/SpaceAgeTest.java
  77. 6
    0
      exercises/strain/build.gradle
  78. 13
    0
      exercises/strain/src/test/java/StrainTest.java
  79. 6
    0
      exercises/triangle/build.gradle
  80. 16
    0
      exercises/triangle/src/test/java/TriangleTest.java
  81. 6
    0
      exercises/trinary/build.gradle
  82. 5
    0
      exercises/trinary/src/test/java/TrinaryTest.java
  83. 6
    0
      exercises/word-count/build.gradle
  84. 7
    0
      exercises/word-count/src/test/java/WordCountTest.java
  85. 21
    0
      scripts/increase-test-logging.sh
  86. 15
    0
      scripts/insert-ignores.sh

+ 7
- 0
bin/journey-test.sh Ver fichero

3
 EXECPATH=$PWD
3
 EXECPATH=$PWD
4
 XAPI_PID=""
4
 XAPI_PID=""
5
 
5
 
6
+# Makes CI output easier to read
7
+TERM=dumb
8
+
6
 function on_exit() {
9
 function on_exit() {
7
   echo ">>> on_exit()"
10
   echo ">>> on_exit()"
8
   if [ "$XAPI_PID" != "" ] ; then
11
   if [ "$XAPI_PID" != "" ] ; then
177
   local EXERCISES=`cat config.json | jq '.problems []' --raw-output`
180
   local EXERCISES=`cat config.json | jq '.problems []' --raw-output`
178
   local TOTAL_EXERCISES=`cat config.json | jq '.problems | length'`
181
   local TOTAL_EXERCISES=`cat config.json | jq '.problems | length'`
179
   local CURRENT_EXERCISE_NUMBER=1
182
   local CURRENT_EXERCISE_NUMBER=1
183
+  local TEMPFILE="${TMPDIR:-/tmp}/journey-test.sh-unignore_all_tests.txt"
180
 
184
 
181
   pushd ${EXERCISM_HOME} >/dev/null
185
   pushd ${EXERCISM_HOME} >/dev/null
182
   for EXERCISE in $EXERCISES; do
186
   for EXERCISE in $EXERCISES; do
186
     $EXERCISM fetch java $EXERCISE
190
     $EXERCISM fetch java $EXERCISE
187
     cp -R -H $REPO_ROOT/exercises/$EXERCISE/src/example/java/* $EXERCISM_HOME/java/$EXERCISE/src/main/java/
191
     cp -R -H $REPO_ROOT/exercises/$EXERCISE/src/example/java/* $EXERCISM_HOME/java/$EXERCISE/src/main/java/
188
     pushd $EXERCISM_HOME/java/$EXERCISE/ >/dev/null
192
     pushd $EXERCISM_HOME/java/$EXERCISE/ >/dev/null
193
+    for TESTFILE in `find . -name "*Test.java"`; do
194
+      sed 's/@Ignore//' $TESTFILE > "$TEMPFILE" && mv "$TEMPFILE" "$TESTFILE"
195
+    done
189
     gradle test
196
     gradle test
190
     popd >/dev/null
197
     popd >/dev/null
191
 
198
 

+ 4
- 1
config.json Ver fichero

246
   "ignored": [
246
   "ignored": [
247
     "_template",
247
     "_template",
248
     ".gradle",
248
     ".gradle",
249
-    "docs"
249
+    "build",
250
+    "docs",
251
+    "gradle",
252
+    "scripts"
250
   ],
253
   ],
251
   "foregone": [
254
   "foregone": [
252
     "leap",
255
     "leap",

+ 6
- 0
exercises/_template/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 6
- 0
exercises/accumulate/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 6
- 0
exercises/accumulate/src/test/java/AccumulateTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import java.util.Arrays;
4
 import java.util.Arrays;
4
 import java.util.LinkedList;
5
 import java.util.LinkedList;
8
 
9
 
9
 public class AccumulateTest {
10
 public class AccumulateTest {
10
 
11
 
12
+
11
     @Test
13
     @Test
12
     public void emptyAccumulateProducesEmptyAccumulation() {
14
     public void emptyAccumulateProducesEmptyAccumulation() {
13
         List<Integer> input = new LinkedList<>();
15
         List<Integer> input = new LinkedList<>();
15
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x * x));
17
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x * x));
16
     }
18
     }
17
 
19
 
20
+    @Ignore
18
     @Test
21
     @Test
19
     public void accumulateSquares() {
22
     public void accumulateSquares() {
20
         List<Integer> input = Arrays.asList(1, 2, 3);
23
         List<Integer> input = Arrays.asList(1, 2, 3);
22
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x * x));
25
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x * x));
23
     }
26
     }
24
 
27
 
28
+    @Ignore
25
     @Test
29
     @Test
26
     public void accumulateUpperCases() {
30
     public void accumulateUpperCases() {
27
         List<String> input = Arrays.asList("hello", "world");
31
         List<String> input = Arrays.asList("hello", "world");
29
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x.toUpperCase()));
33
         assertEquals(expectedOutput, Accumulate.accumulate(input, x -> x.toUpperCase()));
30
     }
34
     }
31
 
35
 
36
+    @Ignore
32
     @Test
37
     @Test
33
     public void accumulateReversedStrings() {
38
     public void accumulateReversedStrings() {
34
         List<String> input = Arrays.asList("the quick brown fox etc".split(" "));
39
         List<String> input = Arrays.asList("the quick brown fox etc".split(" "));
40
         return new StringBuilder(input).reverse().toString();
45
         return new StringBuilder(input).reverse().toString();
41
     }
46
     }
42
 
47
 
48
+    @Ignore
43
     @Test
49
     @Test
44
     public void accumulateWithinAccumulate() {
50
     public void accumulateWithinAccumulate() {
45
         List<String> input1 = Arrays.asList("a", "b", "c");
51
         List<String> input1 = Arrays.asList("a", "b", "c");

+ 6
- 0
exercises/acronym/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 8
- 0
exercises/acronym/src/test/java/AcronymTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import static org.junit.Assert.assertEquals;
4
 import static org.junit.Assert.assertEquals;
4
 
5
 
5
 public class AcronymTest {
6
 public class AcronymTest {
6
 
7
 
8
+
7
     @Test
9
     @Test
8
     public void fromTitleCasedPhrases() {
10
     public void fromTitleCasedPhrases() {
9
         final String phrase = "Portable Network Graphics";
11
         final String phrase = "Portable Network Graphics";
11
         assertEquals(expected, Acronym.generate(phrase));
13
         assertEquals(expected, Acronym.generate(phrase));
12
     }
14
     }
13
 
15
 
16
+    @Ignore
14
     @Test
17
     @Test
15
     public void fromOtherTitleCasedPhrases() {
18
     public void fromOtherTitleCasedPhrases() {
16
         final String phrase = "Ruby on Rails";
19
         final String phrase = "Ruby on Rails";
18
         assertEquals(expected, Acronym.generate(phrase));
21
         assertEquals(expected, Acronym.generate(phrase));
19
     }
22
     }
20
 
23
 
24
+    @Ignore
21
     @Test
25
     @Test
22
     public void fromInconsistentlyCasedPhrases() {
26
     public void fromInconsistentlyCasedPhrases() {
23
         final String phrase = "HyperText Markup Language";
27
         final String phrase = "HyperText Markup Language";
25
         assertEquals(expected, Acronym.generate(phrase));
29
         assertEquals(expected, Acronym.generate(phrase));
26
     }
30
     }
27
 
31
 
32
+    @Ignore
28
     @Test
33
     @Test
29
     public void fromPhrasesWithPunctuation() {
34
     public void fromPhrasesWithPunctuation() {
30
         final String phrase = "First In, First Out";
35
         final String phrase = "First In, First Out";
32
         assertEquals(expected, Acronym.generate(phrase));
37
         assertEquals(expected, Acronym.generate(phrase));
33
     }
38
     }
34
 
39
 
40
+    @Ignore
35
     @Test
41
     @Test
36
     public void fromOtherPhrasesWithPunctuation() {
42
     public void fromOtherPhrasesWithPunctuation() {
37
         final String phrase = "PHP: Hypertext Preprocessor";
43
         final String phrase = "PHP: Hypertext Preprocessor";
39
         assertEquals(expected, Acronym.generate(phrase));
45
         assertEquals(expected, Acronym.generate(phrase));
40
     }
46
     }
41
 
47
 
48
+    @Ignore
42
     @Test
49
     @Test
43
     public void fromPhrasesWithPunctuationAndSentenceCasing() {
50
     public void fromPhrasesWithPunctuationAndSentenceCasing() {
44
         final String phrase = "Complementary metal-oxide semiconductor";
51
         final String phrase = "Complementary metal-oxide semiconductor";
46
         assertEquals(expected, Acronym.generate(phrase));
53
         assertEquals(expected, Acronym.generate(phrase));
47
     }
54
     }
48
 
55
 
56
+    @Ignore
49
     @Test
57
     @Test
50
     public void fromPhraseWithSingleLetterWord() {
58
     public void fromPhraseWithSingleLetterWord() {
51
         final String phrase = "Cat in a Hat";
59
         final String phrase = "Cat in a Hat";

+ 6
- 0
exercises/allergies/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 20
- 0
exercises/allergies/src/test/java/AllergiesTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import java.util.Arrays;
4
 import java.util.Arrays;
4
 import java.util.List;
5
 import java.util.List;
7
 
8
 
8
 public class AllergiesTest {
9
 public class AllergiesTest {
9
 
10
 
11
+
10
     @Test
12
     @Test
11
     public void noAllergiesMeansNotAllergicToAnything() {
13
     public void noAllergiesMeansNotAllergicToAnything() {
12
         Allergies allergies = new Allergies(0);
14
         Allergies allergies = new Allergies(0);
17
         assertEquals(false, allergies.isAllergicTo(Allergen.CATS));
19
         assertEquals(false, allergies.isAllergicTo(Allergen.CATS));
18
     }
20
     }
19
 
21
 
22
+    @Ignore
20
     @Test
23
     @Test
21
     public void allergicToEggs() {
24
     public void allergicToEggs() {
22
         Allergies allergies = new Allergies(1);
25
         Allergies allergies = new Allergies(1);
24
         assertEquals(true, allergies.isAllergicTo(Allergen.EGGS));
27
         assertEquals(true, allergies.isAllergicTo(Allergen.EGGS));
25
     }
28
     }
26
 
29
 
30
+    @Ignore
27
     @Test
31
     @Test
28
     public void allergicToPeanuts() {
32
     public void allergicToPeanuts() {
29
         Allergies allergies = new Allergies(2);
33
         Allergies allergies = new Allergies(2);
31
         assertEquals(true, allergies.isAllergicTo(Allergen.PEANUTS));
35
         assertEquals(true, allergies.isAllergicTo(Allergen.PEANUTS));
32
     }
36
     }
33
 
37
 
38
+    @Ignore
34
     @Test
39
     @Test
35
     public void allergicToShellfish() {
40
     public void allergicToShellfish() {
36
         Allergies allergies = new Allergies(4);
41
         Allergies allergies = new Allergies(4);
38
         assertEquals(true, allergies.isAllergicTo(Allergen.SHELLFISH));
43
         assertEquals(true, allergies.isAllergicTo(Allergen.SHELLFISH));
39
     }
44
     }
40
 
45
 
46
+    @Ignore
41
     @Test
47
     @Test
42
     public void allergicToStrawberries() {
48
     public void allergicToStrawberries() {
43
         Allergies allergies = new Allergies(8);
49
         Allergies allergies = new Allergies(8);
45
         assertEquals(true, allergies.isAllergicTo(Allergen.STRAWBERRIES));
51
         assertEquals(true, allergies.isAllergicTo(Allergen.STRAWBERRIES));
46
     }
52
     }
47
 
53
 
54
+    @Ignore
48
     @Test
55
     @Test
49
     public void allergicToTomatoes() {
56
     public void allergicToTomatoes() {
50
         Allergies allergies = new Allergies(16);
57
         Allergies allergies = new Allergies(16);
52
         assertEquals(true, allergies.isAllergicTo(Allergen.TOMATOES));
59
         assertEquals(true, allergies.isAllergicTo(Allergen.TOMATOES));
53
     }
60
     }
54
 
61
 
62
+    @Ignore
55
     @Test
63
     @Test
56
     public void allergicToChocolate() {
64
     public void allergicToChocolate() {
57
         Allergies allergies = new Allergies(32);
65
         Allergies allergies = new Allergies(32);
59
         assertEquals(true, allergies.isAllergicTo(Allergen.CHOCOLATE));
67
         assertEquals(true, allergies.isAllergicTo(Allergen.CHOCOLATE));
60
     }
68
     }
61
 
69
 
70
+    @Ignore
62
     @Test
71
     @Test
63
     public void allergicToPollen() {
72
     public void allergicToPollen() {
64
         Allergies allergies = new Allergies(64);
73
         Allergies allergies = new Allergies(64);
66
         assertEquals(true, allergies.isAllergicTo(Allergen.POLLEN));
75
         assertEquals(true, allergies.isAllergicTo(Allergen.POLLEN));
67
     }
76
     }
68
 
77
 
78
+    @Ignore
69
     @Test
79
     @Test
70
     public void allergicToCats() {
80
     public void allergicToCats() {
71
         Allergies allergies = new Allergies(128);
81
         Allergies allergies = new Allergies(128);
73
         assertEquals(true, allergies.isAllergicTo(Allergen.CATS));
83
         assertEquals(true, allergies.isAllergicTo(Allergen.CATS));
74
     }
84
     }
75
 
85
 
86
+    @Ignore
76
     @Test
87
     @Test
77
     public void isAllergicToEggsInAdditionToOtherStuff() {
88
     public void isAllergicToEggsInAdditionToOtherStuff() {
78
         Allergies allergies = new Allergies(5);
89
         Allergies allergies = new Allergies(5);
80
         assertEquals(true, allergies.isAllergicTo(Allergen.EGGS));
91
         assertEquals(true, allergies.isAllergicTo(Allergen.EGGS));
81
     }
92
     }
82
 
93
 
94
+    @Ignore
83
     @Test
95
     @Test
84
     public void noAllergies() {
96
     public void noAllergies() {
85
         Allergies allergies = new Allergies(0);
97
         Allergies allergies = new Allergies(0);
87
         assertEquals(0, allergies.getList().size());
99
         assertEquals(0, allergies.getList().size());
88
     }
100
     }
89
 
101
 
102
+    @Ignore
90
     @Test
103
     @Test
91
     public void isAllergicToJustEggs() {
104
     public void isAllergicToJustEggs() {
92
         Allergies allergies = new Allergies(1);
105
         Allergies allergies = new Allergies(1);
95
         assertEquals(expectedAllergens, allergies.getList());
108
         assertEquals(expectedAllergens, allergies.getList());
96
     }
109
     }
97
 
110
 
111
+    @Ignore
98
     @Test
112
     @Test
99
     public void isAllergicToJustPeanuts() {
113
     public void isAllergicToJustPeanuts() {
100
         Allergies allergies = new Allergies(2);
114
         Allergies allergies = new Allergies(2);
103
         assertEquals(expectedAllergens, allergies.getList());
117
         assertEquals(expectedAllergens, allergies.getList());
104
     }
118
     }
105
 
119
 
120
+    @Ignore
106
     @Test
121
     @Test
107
     public void isAllergicToJustStrawberries() {
122
     public void isAllergicToJustStrawberries() {
108
         Allergies allergies = new Allergies(8);
123
         Allergies allergies = new Allergies(8);
111
         assertEquals(expectedAllergens, allergies.getList());
126
         assertEquals(expectedAllergens, allergies.getList());
112
     }
127
     }
113
 
128
 
129
+    @Ignore
114
     @Test
130
     @Test
115
     public void isAllergicToEggsAndPeanuts() {
131
     public void isAllergicToEggsAndPeanuts() {
116
         Allergies allergies = new Allergies(3);
132
         Allergies allergies = new Allergies(3);
122
         assertEquals(expectedAllergens, allergies.getList());
138
         assertEquals(expectedAllergens, allergies.getList());
123
     }
139
     }
124
 
140
 
141
+    @Ignore
125
     @Test
142
     @Test
126
     public void isAllergicToEggsAndShellfish() {
143
     public void isAllergicToEggsAndShellfish() {
127
         Allergies allergies = new Allergies(5);
144
         Allergies allergies = new Allergies(5);
133
         assertEquals(expectedAllergens, allergies.getList());
150
         assertEquals(expectedAllergens, allergies.getList());
134
     }
151
     }
135
 
152
 
153
+    @Ignore
136
     @Test
154
     @Test
137
     public void isAllergicToLotsOfStuff() {
155
     public void isAllergicToLotsOfStuff() {
138
         Allergies allergies = new Allergies(248);
156
         Allergies allergies = new Allergies(248);
147
         assertEquals(expectedAllergens, allergies.getList());
165
         assertEquals(expectedAllergens, allergies.getList());
148
     }
166
     }
149
 
167
 
168
+    @Ignore
150
     @Test
169
     @Test
151
     public void isAllergicToEverything() {
170
     public void isAllergicToEverything() {
152
         Allergies allergies = new Allergies(255);
171
         Allergies allergies = new Allergies(255);
164
         assertEquals(expectedAllergens, allergies.getList());
183
         assertEquals(expectedAllergens, allergies.getList());
165
     }
184
     }
166
 
185
 
186
+    @Ignore
167
     @Test
187
     @Test
168
     public void ignoreNonAllergenScoreParts() {
188
     public void ignoreNonAllergenScoreParts() {
169
         Allergies allergies = new Allergies(509);
189
         Allergies allergies = new Allergies(509);

+ 6
- 0
exercises/anagram/build.gradle Ver fichero

10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
   testCompile "org.assertj:assertj-core:3.2.0"
11
   testCompile "org.assertj:assertj-core:3.2.0"
12
 }
12
 }
13
+test {
14
+  testLogging {
15
+    exceptionFormat = 'full'
16
+    events = ["passed", "failed", "skipped"]
17
+  }
18
+}

+ 11
- 0
exercises/anagram/src/test/java/AnagramTest.java Ver fichero

3
 import java.util.Arrays;
3
 import java.util.Arrays;
4
 import java.util.List;
4
 import java.util.List;
5
 import org.junit.Test;
5
 import org.junit.Test;
6
+import org.junit.Ignore;
6
 
7
 
7
 public class AnagramTest {
8
 public class AnagramTest {
8
 
9
 
10
+
9
     @Test
11
     @Test
10
     public void testNoMatches() {
12
     public void testNoMatches() {
11
         Anagram detector = new Anagram("diaper");
13
         Anagram detector = new Anagram("diaper");
12
         assertThat(detector.match(Arrays.asList("hello", "world", "zombies", "pants"))).isEmpty();
14
         assertThat(detector.match(Arrays.asList("hello", "world", "zombies", "pants"))).isEmpty();
13
     }
15
     }
14
 
16
 
17
+    @Ignore
15
     @Test
18
     @Test
16
     public void testSimpleAnagram() {
19
     public void testSimpleAnagram() {
17
         Anagram detector = new Anagram("ant");
20
         Anagram detector = new Anagram("ant");
19
         assertThat(anagram).containsExactly("tan");
22
         assertThat(anagram).containsExactly("tan");
20
     }
23
     }
21
 
24
 
25
+    @Ignore
22
     @Test
26
     @Test
23
     public void testDetectMultipleAnagrams() {
27
     public void testDetectMultipleAnagrams() {
24
         Anagram detector = new Anagram("master");
28
         Anagram detector = new Anagram("master");
26
         assertThat(anagrams).contains("maters", "stream");
30
         assertThat(anagrams).contains("maters", "stream");
27
     }
31
     }
28
 
32
 
33
+    @Ignore
29
     @Test
34
     @Test
30
     public void testDoesNotConfuseDifferentDuplicates() {
35
     public void testDoesNotConfuseDifferentDuplicates() {
31
         Anagram detector = new Anagram("galea");
36
         Anagram detector = new Anagram("galea");
33
         assertThat(anagrams).isEmpty();
38
         assertThat(anagrams).isEmpty();
34
     }
39
     }
35
 
40
 
41
+    @Ignore
36
     @Test
42
     @Test
37
     public void testIdenticalWordIsNotAnagram() {
43
     public void testIdenticalWordIsNotAnagram() {
38
         Anagram detector = new Anagram("corn");
44
         Anagram detector = new Anagram("corn");
40
         assertThat(anagrams).containsExactly("cron");
46
         assertThat(anagrams).containsExactly("cron");
41
     }
47
     }
42
 
48
 
49
+    @Ignore
43
     @Test
50
     @Test
44
     public void testEliminateAnagramsWithSameChecksum() {
51
     public void testEliminateAnagramsWithSameChecksum() {
45
         Anagram detector = new Anagram("mass");
52
         Anagram detector = new Anagram("mass");
46
         assertThat(detector.match(Arrays.asList("last")).isEmpty());
53
         assertThat(detector.match(Arrays.asList("last")).isEmpty());
47
     }
54
     }
48
 
55
 
56
+    @Ignore
49
     @Test
57
     @Test
50
     public void testEliminateAnagramSubsets() {
58
     public void testEliminateAnagramSubsets() {
51
         Anagram detector = new Anagram("good");
59
         Anagram detector = new Anagram("good");
52
         assertThat(detector.match(Arrays.asList("dog", "goody"))).isEmpty();
60
         assertThat(detector.match(Arrays.asList("dog", "goody"))).isEmpty();
53
     }
61
     }
54
 
62
 
63
+    @Ignore
55
     @Test
64
     @Test
56
     public void testDetectAnagrams() {
65
     public void testDetectAnagrams() {
57
         Anagram detector = new Anagram("listen");
66
         Anagram detector = new Anagram("listen");
59
         assertThat(anagrams).contains("inlets");
68
         assertThat(anagrams).contains("inlets");
60
     }
69
     }
61
 
70
 
71
+    @Ignore
62
     @Test
72
     @Test
63
     public void testMultipleAnagrams() {
73
     public void testMultipleAnagrams() {
64
         Anagram detector = new Anagram("allergy");
74
         Anagram detector = new Anagram("allergy");
66
         assertThat(anagrams).contains("gallery", "largely", "regally");
76
         assertThat(anagrams).contains("gallery", "largely", "regally");
67
     }
77
     }
68
 
78
 
79
+    @Ignore
69
     @Test
80
     @Test
70
     public void testAnagramsAreCaseInsensitive() {
81
     public void testAnagramsAreCaseInsensitive() {
71
         Anagram detector = new Anagram("Orchestra");
82
         Anagram detector = new Anagram("Orchestra");

+ 6
- 0
exercises/atbash-cipher/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 5
- 2
exercises/atbash-cipher/src/test/java/AtbashTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 import org.junit.experimental.runners.Enclosed;
3
 import org.junit.experimental.runners.Enclosed;
3
 import org.junit.runner.RunWith;
4
 import org.junit.runner.RunWith;
4
 import org.junit.runners.Parameterized;
5
 import org.junit.runners.Parameterized;
35
             this.expectedOutput = expectedOutput;
36
             this.expectedOutput = expectedOutput;
36
         }
37
         }
37
 
38
 
38
-        @Test
39
+
40
+    @Test
39
         public void test() {
41
         public void test() {
40
             assertEquals(expectedOutput, Atbash.encode(input));
42
             assertEquals(expectedOutput, Atbash.encode(input));
41
         }
43
         }
60
             this.expectedOutput = expectedOutput;
62
             this.expectedOutput = expectedOutput;
61
         }
63
         }
62
 
64
 
63
-        @Test
65
+        @Ignore
66
+    @Test
64
         public void test() {
67
         public void test() {
65
             assertEquals(expectedOutput, Atbash.decode(input));
68
             assertEquals(expectedOutput, Atbash.decode(input));
66
         }
69
         }

+ 6
- 0
exercises/beer-song/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 5
- 1
exercises/beer-song/src/test/java/BeerSongTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import static org.junit.Assert.assertEquals;
4
 import static org.junit.Assert.assertEquals;
4
 
5
 
5
 public class BeerSongTest {
6
 public class BeerSongTest {
6
 
7
 
8
+
7
     @Test
9
     @Test
8
     public void singOneVerse() {
10
     public void singOneVerse() {
9
         assertEquals("8 bottles of beer on the wall, 8 bottles of beer.\nTake one down and pass it around, 7 bottles of beer on the wall.\n\n", BeerSong.verse(8));
11
         assertEquals("8 bottles of beer on the wall, 8 bottles of beer.\nTake one down and pass it around, 7 bottles of beer on the wall.\n\n", BeerSong.verse(8));
13
 
15
 
14
     }
16
     }
15
 
17
 
18
+    @Ignore
16
     @Test
19
     @Test
17
     public void singMoreThanOneVerse() {
20
     public void singMoreThanOneVerse() {
18
         assertEquals("8 bottles of beer on the wall, 8 bottles of beer.\nTake one down and pass it around, 7 bottles of beer on the wall.\n\n7 bottles of beer on the wall, 7 bottles of beer.\nTake one down and pass it around, 6 bottles of beer on the wall.\n\n6 bottles of beer on the wall, 6 bottles of beer.\nTake one down and pass it around, 5 bottles of beer on the wall.\n\n", BeerSong.sing(8,6));
21
         assertEquals("8 bottles of beer on the wall, 8 bottles of beer.\nTake one down and pass it around, 7 bottles of beer on the wall.\n\n7 bottles of beer on the wall, 7 bottles of beer.\nTake one down and pass it around, 6 bottles of beer on the wall.\n\n6 bottles of beer on the wall, 6 bottles of beer.\nTake one down and pass it around, 5 bottles of beer on the wall.\n\n", BeerSong.sing(8,6));
19
         assertEquals("3 bottles of beer on the wall, 3 bottles of beer.\nTake one down and pass it around, 2 bottles of beer on the wall.\n\n2 bottles of beer on the wall, 2 bottles of beer.\nTake one down and pass it around, 1 bottle of beer on the wall.\n\n1 bottle of beer on the wall, 1 bottle of beer.\nTake it down and pass it around, no more bottles of beer on the wall.\n\nNo more bottles of beer on the wall, no more bottles of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.\n\n",BeerSong.sing(3,0));
22
         assertEquals("3 bottles of beer on the wall, 3 bottles of beer.\nTake one down and pass it around, 2 bottles of beer on the wall.\n\n2 bottles of beer on the wall, 2 bottles of beer.\nTake one down and pass it around, 1 bottle of beer on the wall.\n\n1 bottle of beer on the wall, 1 bottle of beer.\nTake it down and pass it around, no more bottles of beer on the wall.\n\nNo more bottles of beer on the wall, no more bottles of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.\n\n",BeerSong.sing(3,0));
20
     }
23
     }
21
 
24
 
25
+    @Ignore
22
     @Test
26
     @Test
23
     public void singEntireSong() {
27
     public void singEntireSong() {
24
         assertEquals("99 bottles of beer on the wall, 99 bottles of beer.\nTake one down and pass it around, 98 bottles of beer on the wall.\n\n" +
28
         assertEquals("99 bottles of beer on the wall, 99 bottles of beer.\nTake one down and pass it around, 98 bottles of beer on the wall.\n\n" +
124
                 BeerSong.singSong());
128
                 BeerSong.singSong());
125
     }
129
     }
126
 
130
 
127
-}
131
+}

+ 6
- 0
exercises/binary/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 2
- 0
exercises/binary/src/test/java/BinaryTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 import org.junit.runner.RunWith;
3
 import org.junit.runner.RunWith;
3
 import org.junit.runners.Parameterized;
4
 import org.junit.runners.Parameterized;
4
 import org.junit.runners.Parameterized.Parameters;
5
 import org.junit.runners.Parameterized.Parameters;
38
         this.expectedOutput = expectedOutput;
39
         this.expectedOutput = expectedOutput;
39
     }
40
     }
40
 
41
 
42
+
41
     @Test
43
     @Test
42
     public void test() {
44
     public void test() {
43
         Binary binary = new Binary(input);
45
         Binary binary = new Binary(input);

+ 6
- 0
exercises/bob/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 19
- 0
exercises/bob/src/test/java/BobTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import static org.junit.Assert.*;
4
 import static org.junit.Assert.*;
4
 
5
 
5
 public class BobTest {
6
 public class BobTest {
6
     private final Bob bob = new Bob();
7
     private final Bob bob = new Bob();
7
 
8
 
9
+
8
     @Test
10
     @Test
9
     public void saySomething() {
11
     public void saySomething() {
10
         assertEquals(
12
         assertEquals(
13
         );
15
         );
14
     }
16
     }
15
 
17
 
18
+    @Ignore
16
     @Test
19
     @Test
17
     public void shouting() {
20
     public void shouting() {
18
         assertEquals(
21
         assertEquals(
21
         );
24
         );
22
     }
25
     }
23
 
26
 
27
+    @Ignore
24
     @Test
28
     @Test
25
     public void askingAQuestion() {
29
     public void askingAQuestion() {
26
         assertEquals(
30
         assertEquals(
29
         );
33
         );
30
     }
34
     }
31
 
35
 
36
+    @Ignore
32
     @Test
37
     @Test
33
     public void askingANumericQuestion() {
38
     public void askingANumericQuestion() {
34
         assertEquals(
39
         assertEquals(
37
         );
42
         );
38
     }
43
     }
39
 
44
 
45
+    @Ignore
40
     @Test
46
     @Test
41
     public void talkingForcefully() {
47
     public void talkingForcefully() {
42
         assertEquals(
48
         assertEquals(
45
         );
51
         );
46
     }
52
     }
47
 
53
 
54
+    @Ignore
48
     @Test
55
     @Test
49
     public void usingAcronymsInRegularSpeech() {
56
     public void usingAcronymsInRegularSpeech() {
50
         assertEquals(
57
         assertEquals(
52
         );
59
         );
53
     }
60
     }
54
 
61
 
62
+    @Ignore
55
     @Test
63
     @Test
56
     public void forcefulQuestions() {
64
     public void forcefulQuestions() {
57
         assertEquals(
65
         assertEquals(
59
         );
67
         );
60
     }
68
     }
61
 
69
 
70
+    @Ignore
62
     @Test
71
     @Test
63
     public void shoutingNumbers() {
72
     public void shoutingNumbers() {
64
         assertEquals(
73
         assertEquals(
66
         );
75
         );
67
     }
76
     }
68
 
77
 
78
+    @Ignore
69
     @Test
79
     @Test
70
     public void onlyNumbers() {
80
     public void onlyNumbers() {
71
         assertEquals(
81
         assertEquals(
73
         );
83
         );
74
     }
84
     }
75
 
85
 
86
+    @Ignore
76
     @Test
87
     @Test
77
     public void questionWithOnlyNumbers() {
88
     public void questionWithOnlyNumbers() {
78
         assertEquals(
89
         assertEquals(
80
         );
91
         );
81
     }
92
     }
82
 
93
 
94
+    @Ignore
83
     @Test
95
     @Test
84
     public void shoutingWithSpecialCharacters() {
96
     public void shoutingWithSpecialCharacters() {
85
         assertEquals(
97
         assertEquals(
87
         );
99
         );
88
     }
100
     }
89
 
101
 
102
+    @Ignore
90
     @Test
103
     @Test
91
     public void shoutingWithUmlauts() {
104
     public void shoutingWithUmlauts() {
92
         assertEquals(
105
         assertEquals(
94
         );
107
         );
95
     }
108
     }
96
 
109
 
110
+    @Ignore
97
     @Test
111
     @Test
98
     public void calmlySpeakingWithUmlauts() {
112
     public void calmlySpeakingWithUmlauts() {
99
         assertEquals(
113
         assertEquals(
101
         );
115
         );
102
     }
116
     }
103
 
117
 
118
+    @Ignore
104
     @Test
119
     @Test
105
     public void shoutingWithNoExclamationMark() {
120
     public void shoutingWithNoExclamationMark() {
106
         assertEquals(
121
         assertEquals(
108
         );
123
         );
109
     }
124
     }
110
 
125
 
126
+    @Ignore
111
     @Test
127
     @Test
112
     public void statementContainingQuestionMark() {
128
     public void statementContainingQuestionMark() {
113
         assertEquals(
129
         assertEquals(
115
         );
131
         );
116
     }
132
     }
117
 
133
 
134
+    @Ignore
118
     @Test
135
     @Test
119
     public void prattlingOn() {
136
     public void prattlingOn() {
120
         assertEquals(
137
         assertEquals(
122
         );
139
         );
123
     }
140
     }
124
 
141
 
142
+    @Ignore
125
     @Test
143
     @Test
126
     public void silence() {
144
     public void silence() {
127
         assertEquals(
145
         assertEquals(
129
         );
147
         );
130
     }
148
     }
131
 
149
 
150
+    @Ignore
132
     @Test
151
     @Test
133
     public void prolongedSilence() {
152
     public void prolongedSilence() {
134
         assertEquals(
153
         assertEquals(

+ 1
- 1
exercises/build.gradle Ver fichero

33
     from "src/test/java"
33
     from "src/test/java"
34
     into "build/gen/test/java"
34
     into "build/gen/test/java"
35
     filter { line ->
35
     filter { line ->
36
-      line.contains("@Ignore") ? null : line
36
+      line.contains("@Ignore") ? "" : line
37
     }
37
     }
38
   }
38
   }
39
 
39
 

+ 6
- 0
exercises/crypto-square/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 16
- 0
exercises/crypto-square/src/test/java/CryptoSquareTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import java.util.Arrays;
4
 import java.util.Arrays;
4
 import java.util.List;
5
 import java.util.List;
7
 
8
 
8
 public class CryptoSquareTest {
9
 public class CryptoSquareTest {
9
 
10
 
11
+
10
     @Test
12
     @Test
11
     public void strangeCharactersAreStrippedDuringNormalization() {
13
     public void strangeCharactersAreStrippedDuringNormalization() {
12
         Crypto crypto = new Crypto("s#$%^&plunk");
14
         Crypto crypto = new Crypto("s#$%^&plunk");
15
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
17
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
16
     }
18
     }
17
 
19
 
20
+    @Ignore
18
     @Test
21
     @Test
19
     public void lettersAreLowerCasedDuringNormalization() {
22
     public void lettersAreLowerCasedDuringNormalization() {
20
         Crypto crypto = new Crypto("WHOA HEY!");
23
         Crypto crypto = new Crypto("WHOA HEY!");
23
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
26
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
24
     }
27
     }
25
 
28
 
29
+    @Ignore
26
     @Test
30
     @Test
27
     public void numbersAreKeptDuringNormalization() {
31
     public void numbersAreKeptDuringNormalization() {
28
         Crypto crypto = new Crypto("1, 2, 3, GO!");
32
         Crypto crypto = new Crypto("1, 2, 3, GO!");
31
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
35
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
32
     }
36
     }
33
 
37
 
38
+    @Ignore
34
     @Test
39
     @Test
35
     public void smallestSquareSizeIs2() {
40
     public void smallestSquareSizeIs2() {
36
         Crypto crypto = new Crypto("1234");
41
         Crypto crypto = new Crypto("1234");
39
         assertEquals(expectedOutput, crypto.getSquareSize());
44
         assertEquals(expectedOutput, crypto.getSquareSize());
40
     }
45
     }
41
 
46
 
47
+    @Ignore
42
     @Test
48
     @Test
43
     public void sizeOfTextWhoseLengthIsPerfectSquareIsItsSquareRoot() {
49
     public void sizeOfTextWhoseLengthIsPerfectSquareIsItsSquareRoot() {
44
         Crypto crypto = new Crypto("123456789");
50
         Crypto crypto = new Crypto("123456789");
47
         assertEquals(expectedOutput, crypto.getSquareSize());
53
         assertEquals(expectedOutput, crypto.getSquareSize());
48
     }
54
     }
49
 
55
 
56
+    @Ignore
50
     @Test
57
     @Test
51
     public void sizeOfTextWhoseLengthIsNoPerfectSquareIsNextBiggestSquareRoot() {
58
     public void sizeOfTextWhoseLengthIsNoPerfectSquareIsNextBiggestSquareRoot() {
52
         Crypto crypto = new Crypto("123456789abc");
59
         Crypto crypto = new Crypto("123456789abc");
55
         assertEquals(expectedOutput, crypto.getSquareSize());
62
         assertEquals(expectedOutput, crypto.getSquareSize());
56
     }
63
     }
57
 
64
 
65
+    @Ignore
58
     @Test
66
     @Test
59
     public void sizeIsDeterminedByNormalizedText() {
67
     public void sizeIsDeterminedByNormalizedText() {
60
         Crypto crypto = new Crypto("Oh hey, this is nuts!");
68
         Crypto crypto = new Crypto("Oh hey, this is nuts!");
63
         assertEquals(expectedOutput, crypto.getSquareSize());
71
         assertEquals(expectedOutput, crypto.getSquareSize());
64
     }
72
     }
65
 
73
 
74
+    @Ignore
66
     @Test
75
     @Test
67
     public void segmentsAreSplitBySquareSize() {
76
     public void segmentsAreSplitBySquareSize() {
68
         Crypto crypto = new Crypto("Never vex thine heart with idle woes");
77
         Crypto crypto = new Crypto("Never vex thine heart with idle woes");
71
         assertEquals(expectedOutput, crypto.getPlaintextSegments());
80
         assertEquals(expectedOutput, crypto.getPlaintextSegments());
72
     }
81
     }
73
 
82
 
83
+    @Ignore
74
     @Test
84
     @Test
75
     public void segmentsAreSplitBySquareSizeUntilTextRunsOut() {
85
     public void segmentsAreSplitBySquareSizeUntilTextRunsOut() {
76
         Crypto crypto = new Crypto("ZOMG! ZOMBIES!!!");
86
         Crypto crypto = new Crypto("ZOMG! ZOMBIES!!!");
79
         assertEquals(expectedOutput, crypto.getPlaintextSegments());
89
         assertEquals(expectedOutput, crypto.getPlaintextSegments());
80
     }
90
     }
81
 
91
 
92
+    @Ignore
82
     @Test
93
     @Test
83
     public void cipherTextCombinesTextByColumn() {
94
     public void cipherTextCombinesTextByColumn() {
84
         Crypto crypto = new Crypto("First, solve the problem. Then, write the code.");
95
         Crypto crypto = new Crypto("First, solve the problem. Then, write the code.");
87
         assertEquals(expectedOutput, crypto.getCipherText());
98
         assertEquals(expectedOutput, crypto.getCipherText());
88
     }
99
     }
89
 
100
 
101
+    @Ignore
90
     @Test
102
     @Test
91
     public void cipherTextSkipsCellsWithNoText() {
103
     public void cipherTextSkipsCellsWithNoText() {
92
         Crypto crypto = new Crypto("Time is an illusion. Lunchtime doubly so.");
104
         Crypto crypto = new Crypto("Time is an illusion. Lunchtime doubly so.");
95
         assertEquals(expectedOutput, crypto.getCipherText());
107
         assertEquals(expectedOutput, crypto.getCipherText());
96
     }
108
     }
97
 
109
 
110
+    @Ignore
98
     @Test
111
     @Test
99
     public void normalizedCipherTextIsSplitByHeightOfSquare() {
112
     public void normalizedCipherTextIsSplitByHeightOfSquare() {
100
         Crypto crypto = new Crypto("Vampires are people too!");
113
         Crypto crypto = new Crypto("Vampires are people too!");
103
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
116
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
104
     }
117
     }
105
 
118
 
119
+    @Ignore
106
     @Test
120
     @Test
107
     public void normalizedCipherNotExactlyDivisibleBy5SpillsIntoSmallerSegment() {
121
     public void normalizedCipherNotExactlyDivisibleBy5SpillsIntoSmallerSegment() {
108
         Crypto crypto = new Crypto("Madness, and then illumination.");
122
         Crypto crypto = new Crypto("Madness, and then illumination.");
111
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
125
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
112
     }
126
     }
113
 
127
 
128
+    @Ignore
114
     @Test
129
     @Test
115
     public void normalizedCipherIsSplitIntoSegmentsOfCorrectSize() {
130
     public void normalizedCipherIsSplitIntoSegmentsOfCorrectSize() {
116
         Crypto crypto = new Crypto("If man was meant to stay on the ground god would have given us roots");
131
         Crypto crypto = new Crypto("If man was meant to stay on the ground god would have given us roots");
119
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
134
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
120
     }
135
     }
121
 
136
 
137
+    @Ignore
122
     @Test
138
     @Test
123
     public void normalizedCipherTextIsSplitIntoSegmentsOfCorrectSizeWithPunctuation() {
139
     public void normalizedCipherTextIsSplitIntoSegmentsOfCorrectSizeWithPunctuation() {
124
         Crypto crypto = new Crypto("Have a nice day. Feed the dog & chill out!");
140
         Crypto crypto = new Crypto("Have a nice day. Feed the dog & chill out!");

+ 6
- 0
exercises/etl/build.gradle Ver fichero

11
   testCompile "org.assertj:assertj-core:3.2.0"
11
   testCompile "org.assertj:assertj-core:3.2.0"
12
   testCompile "com.google.guava:guava:16+"
12
   testCompile "com.google.guava:guava:16+"
13
 }
13
 }
14
+test {
15
+  testLogging {
16
+    exceptionFormat = 'full'
17
+    events = ["passed", "failed", "skipped"]
18
+  }
19
+}

+ 5
- 0
exercises/etl/src/test/java/EtlTest.java Ver fichero

1
 import com.google.common.collect.ImmutableMap;
1
 import com.google.common.collect.ImmutableMap;
2
 import org.junit.Test;
2
 import org.junit.Test;
3
+import org.junit.Ignore;
3
 
4
 
4
 import java.util.Arrays;
5
 import java.util.Arrays;
5
 import java.util.List;
6
 import java.util.List;
10
 public class EtlTest {
11
 public class EtlTest {
11
     private final Etl etl = new Etl();
12
     private final Etl etl = new Etl();
12
 
13
 
14
+
13
     @Test
15
     @Test
14
     public void testTransformOneValue() {
16
     public void testTransformOneValue() {
15
         Map<Integer, List<String>> old = ImmutableMap.of(1, Arrays.asList("A"));
17
         Map<Integer, List<String>> old = ImmutableMap.of(1, Arrays.asList("A"));
18
         assertThat(etl.transform(old)).isEqualTo(expected);
20
         assertThat(etl.transform(old)).isEqualTo(expected);
19
     }
21
     }
20
 
22
 
23
+    @Ignore
21
     @Test
24
     @Test
22
     public void testTransformMoreValues() {
25
     public void testTransformMoreValues() {
23
         Map<Integer, List<String>> old = ImmutableMap.of(
26
         Map<Integer, List<String>> old = ImmutableMap.of(
34
         assertThat(etl.transform(old)).isEqualTo(expected);
37
         assertThat(etl.transform(old)).isEqualTo(expected);
35
     }
38
     }
36
 
39
 
40
+    @Ignore
37
     @Test
41
     @Test
38
     public void testMoreKeys() {
42
     public void testMoreKeys() {
39
         Map<Integer, List<String>> old = ImmutableMap.of(
43
         Map<Integer, List<String>> old = ImmutableMap.of(
50
         assertThat(etl.transform(old)).isEqualTo(expected);
54
         assertThat(etl.transform(old)).isEqualTo(expected);
51
     }
55
     }
52
 
56
 
57
+    @Ignore
53
     @Test
58
     @Test
54
     public void testFullDataset() {
59
     public void testFullDataset() {
55
         Map<Integer, List<String>> old = ImmutableMap.<Integer, List<String>>builder().
60
         Map<Integer, List<String>> old = ImmutableMap.<Integer, List<String>>builder().

+ 6
- 0
exercises/gigasecond/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 6
- 0
exercises/gigasecond/src/test/java/GigasecondTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import java.time.LocalDate;
4
 import java.time.LocalDate;
4
 import java.time.LocalDateTime;
5
 import java.time.LocalDateTime;
8
 
9
 
9
 public class GigasecondTest {
10
 public class GigasecondTest {
10
 
11
 
12
+
11
     @Test
13
     @Test
12
     public void modernTime() {
14
     public void modernTime() {
13
         Gigasecond gigaSecond = new Gigasecond(LocalDate.of(2011, Month.APRIL, 25));
15
         Gigasecond gigaSecond = new Gigasecond(LocalDate.of(2011, Month.APRIL, 25));
15
         assertEquals(LocalDateTime.of(2043, Month.JANUARY, 1, 1, 46, 40), gigaSecond.getDate());
17
         assertEquals(LocalDateTime.of(2043, Month.JANUARY, 1, 1, 46, 40), gigaSecond.getDate());
16
     }
18
     }
17
 
19
 
20
+    @Ignore
18
     @Test
21
     @Test
19
     public void afterEpochTime() {
22
     public void afterEpochTime() {
20
         Gigasecond gigaSecond = new Gigasecond(LocalDate.of(1977, Month.JUNE, 13));
23
         Gigasecond gigaSecond = new Gigasecond(LocalDate.of(1977, Month.JUNE, 13));
22
         assertEquals(LocalDateTime.of(2009, Month.FEBRUARY, 19, 1, 46, 40), gigaSecond.getDate());
25
         assertEquals(LocalDateTime.of(2009, Month.FEBRUARY, 19, 1, 46, 40), gigaSecond.getDate());
23
     }
26
     }
24
 
27
 
28
+    @Ignore
25
     @Test
29
     @Test
26
     public void beforeEpochTime() {
30
     public void beforeEpochTime() {
27
         Gigasecond gigaSecond = new Gigasecond(LocalDate.of(1959, Month.JULY, 19));
31
         Gigasecond gigaSecond = new Gigasecond(LocalDate.of(1959, Month.JULY, 19));
29
         assertEquals(LocalDateTime.of(1991, Month.MARCH, 27, 1, 46, 40), gigaSecond.getDate());
33
         assertEquals(LocalDateTime.of(1991, Month.MARCH, 27, 1, 46, 40), gigaSecond.getDate());
30
     }
34
     }
31
 
35
 
36
+    @Ignore
32
     @Test
37
     @Test
33
     public void withFullTimeSpecified() {
38
     public void withFullTimeSpecified() {
34
         Gigasecond gigaSecond = new Gigasecond(LocalDateTime.of(2015, Month.JANUARY, 24, 22, 0, 0));
39
         Gigasecond gigaSecond = new Gigasecond(LocalDateTime.of(2015, Month.JANUARY, 24, 22, 0, 0));
36
         assertEquals(LocalDateTime.of(2046, Month.OCTOBER, 2, 23, 46, 40), gigaSecond.getDate());
41
         assertEquals(LocalDateTime.of(2046, Month.OCTOBER, 2, 23, 46, 40), gigaSecond.getDate());
37
     }
42
     }
38
 
43
 
44
+    @Ignore
39
     @Test
45
     @Test
40
     public void withFullTimeSpecifiedAndDayRollover() {
46
     public void withFullTimeSpecifiedAndDayRollover() {
41
         Gigasecond gigaSecond = new Gigasecond(LocalDateTime.of(2015, Month.JANUARY, 24, 23, 59, 59));
47
         Gigasecond gigaSecond = new Gigasecond(LocalDateTime.of(2015, Month.JANUARY, 24, 23, 59, 59));

+ 6
- 0
exercises/grade-school/build.gradle Ver fichero

10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
   testCompile "org.assertj:assertj-core:3.2.0"
11
   testCompile "org.assertj:assertj-core:3.2.0"
12
 }
12
 }
13
+test {
14
+  testLogging {
15
+    exceptionFormat = 'full'
16
+    events = ["passed", "failed", "skipped"]
17
+  }
18
+}

+ 15
- 7
exercises/grade-school/src/test/java/SchoolTest.java Ver fichero

1
 import static org.assertj.core.api.Assertions.assertThat;
1
 import static org.assertj.core.api.Assertions.assertThat;
2
 
2
 
3
 import org.junit.Test;
3
 import org.junit.Test;
4
+import org.junit.Ignore;
4
 
5
 
5
 import java.util.Arrays;
6
 import java.util.Arrays;
6
 import java.util.HashMap;
7
 import java.util.HashMap;
10
 public class SchoolTest {
11
 public class SchoolTest {
11
   private final School school = new School();
12
   private final School school = new School();
12
 
13
 
13
-  @Test
14
+
15
+    @Test
14
   public void startsWithNoStudents() {
16
   public void startsWithNoStudents() {
15
     assertThat(school.db()).isEmpty();
17
     assertThat(school.db()).isEmpty();
16
   }
18
   }
17
 
19
 
18
-  @Test
20
+  @Ignore
21
+    @Test
19
   public void addsStudents() {
22
   public void addsStudents() {
20
     school.add("Aimee", 2);
23
     school.add("Aimee", 2);
21
     assertThat(school.db().get(2)).contains("Aimee");
24
     assertThat(school.db().get(2)).contains("Aimee");
22
   }
25
   }
23
 
26
 
24
-  @Test
27
+  @Ignore
28
+    @Test
25
   public void addsMoreStudentsInSameGrade() {
29
   public void addsMoreStudentsInSameGrade() {
26
     final int grade = 2;
30
     final int grade = 2;
27
     school.add("James", grade);
31
     school.add("James", grade);
31
     assertThat(school.db().get(grade)).hasSize(3).contains("James", "Blair", "Paul");
35
     assertThat(school.db().get(grade)).hasSize(3).contains("James", "Blair", "Paul");
32
   }
36
   }
33
 
37
 
34
-  @Test
38
+  @Ignore
39
+    @Test
35
   public void addsStudentsInMultipleGrades() {
40
   public void addsStudentsInMultipleGrades() {
36
     school.add("Chelsea", 3);
41
     school.add("Chelsea", 3);
37
     school.add("Logan", 7);
42
     school.add("Logan", 7);
41
     assertThat(school.db().get(7)).hasSize(1).contains("Logan");
46
     assertThat(school.db().get(7)).hasSize(1).contains("Logan");
42
   }
47
   }
43
 
48
 
44
-  @Test
49
+  @Ignore
50
+    @Test
45
   public void getsStudentsInAGrade() {
51
   public void getsStudentsInAGrade() {
46
     school.add("Franklin", 5);
52
     school.add("Franklin", 5);
47
     school.add("Bradley", 5);
53
     school.add("Bradley", 5);
49
     assertThat(school.grade(5)).hasSize(2).contains("Franklin", "Bradley");
55
     assertThat(school.grade(5)).hasSize(2).contains("Franklin", "Bradley");
50
   }
56
   }
51
 
57
 
52
-  @Test
58
+  @Ignore
59
+    @Test
53
   public void getsStudentsInEmptyGrade() {
60
   public void getsStudentsInEmptyGrade() {
54
     assertThat(school.grade(1)).isEmpty();
61
     assertThat(school.grade(1)).isEmpty();
55
   }
62
   }
56
 
63
 
57
-  @Test
64
+  @Ignore
65
+    @Test
58
   public void sortsSchool() {
66
   public void sortsSchool() {
59
     school.add("Jennifer", 4);
67
     school.add("Jennifer", 4);
60
     school.add("Kareem", 6);
68
     school.add("Kareem", 6);

+ 6
- 0
exercises/hamming/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 10
- 0
exercises/hamming/src/test/java/HammingTest.java Ver fichero

2
 import static org.junit.Assert.*;
2
 import static org.junit.Assert.*;
3
 
3
 
4
 import org.junit.Test;
4
 import org.junit.Test;
5
+import org.junit.Ignore;
5
 
6
 
6
 public class HammingTest {
7
 public class HammingTest {
7
     
8
     
9
+
8
     @Test
10
     @Test
9
     public void testNoDifferenceBetweenIdenticalStrands() {
11
     public void testNoDifferenceBetweenIdenticalStrands() {
10
         assertThat(Hamming.compute("A", "A"), is(0));
12
         assertThat(Hamming.compute("A", "A"), is(0));
11
     }
13
     }
12
 
14
 
15
+    @Ignore
13
     @Test
16
     @Test
14
     public void testCompleteHammingDistanceOfForSingleNucleotideStrand() {
17
     public void testCompleteHammingDistanceOfForSingleNucleotideStrand() {
15
         assertThat(Hamming.compute("A", "G"), is(1));
18
         assertThat(Hamming.compute("A", "G"), is(1));
16
     }
19
     }
17
 
20
 
21
+    @Ignore
18
     @Test
22
     @Test
19
     public void testCompleteHammingDistanceForSmallStrand() {
23
     public void testCompleteHammingDistanceForSmallStrand() {
20
         assertThat(Hamming.compute("AG", "CT"), is(2)); 
24
         assertThat(Hamming.compute("AG", "CT"), is(2)); 
21
     }
25
     }
22
 
26
 
27
+    @Ignore
23
     @Test
28
     @Test
24
     public void testSmallHammingDistance() {
29
     public void testSmallHammingDistance() {
25
         assertThat(Hamming.compute("AT", "CT"), is(1));
30
         assertThat(Hamming.compute("AT", "CT"), is(1));
26
     }
31
     }
27
 
32
 
33
+    @Ignore
28
     @Test
34
     @Test
29
     public void testSmallHammingDistanceInLongerStrand() {
35
     public void testSmallHammingDistanceInLongerStrand() {
30
         assertThat(Hamming.compute("GGACG", "GGTCG"), is(1));
36
         assertThat(Hamming.compute("GGACG", "GGTCG"), is(1));
31
     }
37
     }
32
 
38
 
39
+    @Ignore
33
     @Test(expected = IllegalArgumentException.class)
40
     @Test(expected = IllegalArgumentException.class)
34
     public void testValidatesFirstStrandNotLonger() {
41
     public void testValidatesFirstStrandNotLonger() {
35
         Hamming.compute("AAAG", "AAA");
42
         Hamming.compute("AAAG", "AAA");
36
     }
43
     }
37
 
44
 
45
+    @Ignore
38
     @Test(expected = IllegalArgumentException.class)
46
     @Test(expected = IllegalArgumentException.class)
39
     public void testValidatesOtherStrandNotLonger() {
47
     public void testValidatesOtherStrandNotLonger() {
40
         Hamming.compute("AAA", "AAAG");
48
         Hamming.compute("AAA", "AAAG");
41
     }
49
     }
42
 
50
 
51
+    @Ignore
43
     @Test
52
     @Test
44
     public void testLargeHammingDistance() {
53
     public void testLargeHammingDistance() {
45
         assertThat(Hamming.compute("GATACA", "GCATAA"), is(4));
54
         assertThat(Hamming.compute("GATACA", "GCATAA"), is(4));
46
     }
55
     }
47
 
56
 
57
+    @Ignore
48
     @Test
58
     @Test
49
     public void testHammingDistanceInVeryLongStrand() {
59
     public void testHammingDistanceInVeryLongStrand() {
50
         assertThat(Hamming.compute("GGACGGATTCTG", "AGGACGGATTCT"), is(9));
60
         assertThat(Hamming.compute("GGACGGATTCTG", "AGGACGGATTCT"), is(9));

+ 6
- 0
exercises/hello-world/build.gradle Ver fichero

16
     events = ["passed", "failed", "skipped"]
16
     events = ["passed", "failed", "skipped"]
17
   }
17
   }
18
 }
18
 }
19
+test {
20
+  testLogging {
21
+    exceptionFormat = 'full'
22
+    events = ["passed", "failed", "skipped"]
23
+  }
24
+}

+ 2
- 0
exercises/hello-world/src/test/java/HelloWorldTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
 import org.junit.Ignore;
2
 import org.junit.Ignore;
3
+import org.junit.Ignore;
3
 
4
 
4
 import static org.junit.Assert.assertEquals;
5
 import static org.junit.Assert.assertEquals;
5
 
6
 
6
 public class HelloWorldTest {
7
 public class HelloWorldTest {
7
 
8
 
9
+
8
     @Test
10
     @Test
9
     public void helloNoName() {
11
     public void helloNoName() {
10
         assertEquals("Hello, World!", HelloWorld.hello(""));
12
         assertEquals("Hello, World!", HelloWorld.hello(""));

+ 6
- 0
exercises/hexadecimal/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 11
- 0
exercises/hexadecimal/src/test/java/HexadecimalTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 import static org.junit.Assert.assertEquals;
3
 import static org.junit.Assert.assertEquals;
3
 
4
 
4
 public class HexadecimalTest {
5
 public class HexadecimalTest {
5
 
6
 
7
+
6
     @Test
8
     @Test
7
     public void testOne(){
9
     public void testOne(){
8
         int expected = 1;
10
         int expected = 1;
9
         assertEquals(expected, Hexadecimal.toDecimal("1"));
11
         assertEquals(expected, Hexadecimal.toDecimal("1"));
10
     }
12
     }
11
 
13
 
14
+    @Ignore
12
     @Test
15
     @Test
13
     public void testC(){
16
     public void testC(){
14
         int expected = 12;
17
         int expected = 12;
15
         assertEquals(expected, Hexadecimal.toDecimal("c"));
18
         assertEquals(expected, Hexadecimal.toDecimal("c"));
16
     }
19
     }
17
 
20
 
21
+    @Ignore
18
     @Test
22
     @Test
19
     public void test10(){
23
     public void test10(){
20
         int expected = 16;
24
         int expected = 16;
21
         assertEquals(expected, Hexadecimal.toDecimal("10"));
25
         assertEquals(expected, Hexadecimal.toDecimal("10"));
22
     }
26
     }
23
 
27
 
28
+    @Ignore
24
     @Test
29
     @Test
25
     public void testAf(){
30
     public void testAf(){
26
         int expected = 175;
31
         int expected = 175;
27
         assertEquals(expected, Hexadecimal.toDecimal("af"));
32
         assertEquals(expected, Hexadecimal.toDecimal("af"));
28
     }
33
     }
29
 
34
 
35
+    @Ignore
30
     @Test
36
     @Test
31
     public void test100(){
37
     public void test100(){
32
         int expected = 256;
38
         int expected = 256;
33
         assertEquals(expected, Hexadecimal.toDecimal("100"));
39
         assertEquals(expected, Hexadecimal.toDecimal("100"));
34
     }
40
     }
35
 
41
 
42
+    @Ignore
36
     @Test
43
     @Test
37
     public void test19ace(){
44
     public void test19ace(){
38
         int expected = 105166;
45
         int expected = 105166;
39
         assertEquals(expected, Hexadecimal.toDecimal("19ace"));
46
         assertEquals(expected, Hexadecimal.toDecimal("19ace"));
40
     }
47
     }
41
 
48
 
49
+    @Ignore
42
     @Test
50
     @Test
43
     public void testInvalid(){
51
     public void testInvalid(){
44
         int expected = 0;
52
         int expected = 0;
45
         assertEquals(expected, Hexadecimal.toDecimal("carrot"));
53
         assertEquals(expected, Hexadecimal.toDecimal("carrot"));
46
     }
54
     }
47
 
55
 
56
+    @Ignore
48
     @Test
57
     @Test
49
     public void testBlack(){
58
     public void testBlack(){
50
         int expected = 0;
59
         int expected = 0;
51
         assertEquals(expected, Hexadecimal.toDecimal("000000"));
60
         assertEquals(expected, Hexadecimal.toDecimal("000000"));
52
     }
61
     }
53
 
62
 
63
+    @Ignore
54
     @Test
64
     @Test
55
     public void testWhite(){
65
     public void testWhite(){
56
         int expected = 16777215;
66
         int expected = 16777215;
57
         assertEquals(expected, Hexadecimal.toDecimal("ffffff"));
67
         assertEquals(expected, Hexadecimal.toDecimal("ffffff"));
58
     }
68
     }
59
 
69
 
70
+    @Ignore
60
     @Test
71
     @Test
61
     public void testYellow(){
72
     public void testYellow(){
62
         int expected = 16776960;
73
         int expected = 16776960;

+ 6
- 0
exercises/linked-list/build.gradle Ver fichero

10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
   testCompile "org.assertj:assertj-core:3.2.0"
11
   testCompile "org.assertj:assertj-core:3.2.0"
12
 }
12
 }
13
+test {
14
+  testLogging {
15
+    exceptionFormat = 'full'
16
+    events = ["passed", "failed", "skipped"]
17
+  }
18
+}

+ 6
- 0
exercises/linked-list/src/test/java/DequeTest.java Ver fichero

1
 import org.junit.Before;
1
 import org.junit.Before;
2
 import org.junit.Test;
2
 import org.junit.Test;
3
+import org.junit.Ignore;
3
 
4
 
4
 import static org.assertj.core.api.Assertions.assertThat;
5
 import static org.assertj.core.api.Assertions.assertThat;
5
 
6
 
11
         subject = new Deque<>();
12
         subject = new Deque<>();
12
     }
13
     }
13
 
14
 
15
+
14
     @Test
16
     @Test
15
     public void testPushPop() {
17
     public void testPushPop() {
16
         subject.push(10);
18
         subject.push(10);
19
         assertThat(subject.pop()).isEqualTo(10);
21
         assertThat(subject.pop()).isEqualTo(10);
20
     }
22
     }
21
 
23
 
24
+    @Ignore
22
     @Test
25
     @Test
23
     public void testPushShift() {
26
     public void testPushShift() {
24
         subject.push(10);
27
         subject.push(10);
27
         assertThat(subject.shift()).isEqualTo(20);
30
         assertThat(subject.shift()).isEqualTo(20);
28
     }
31
     }
29
 
32
 
33
+    @Ignore
30
     @Test
34
     @Test
31
     public void testUnshiftShift() {
35
     public void testUnshiftShift() {
32
         subject.unshift(10);
36
         subject.unshift(10);
35
         assertThat(subject.shift()).isEqualTo(10);
39
         assertThat(subject.shift()).isEqualTo(10);
36
     }
40
     }
37
 
41
 
42
+    @Ignore
38
     @Test
43
     @Test
39
     public void testUnshiftPop() {
44
     public void testUnshiftPop() {
40
         subject.unshift(10);
45
         subject.unshift(10);
43
         assertThat(subject.pop()).isEqualTo(20);
48
         assertThat(subject.pop()).isEqualTo(20);
44
     }
49
     }
45
 
50
 
51
+    @Ignore
46
     @Test
52
     @Test
47
     public void testExample() {
53
     public void testExample() {
48
         subject.push(10);
54
         subject.push(10);

+ 6
- 0
exercises/luhn/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 11
- 0
exercises/luhn/src/test/java/LuhnTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import static org.junit.Assert.assertArrayEquals;
4
 import static org.junit.Assert.assertArrayEquals;
4
 import static org.junit.Assert.assertEquals;
5
 import static org.junit.Assert.assertEquals;
5
 
6
 
6
 public class LuhnTest {
7
 public class LuhnTest {
7
 
8
 
9
+
8
     @Test
10
     @Test
9
     public void checkDigitIsRightMostDigit() {
11
     public void checkDigitIsRightMostDigit() {
10
         Luhn luhn = new Luhn(34567);
12
         Luhn luhn = new Luhn(34567);
13
         assertEquals(expectedOutput, luhn.getCheckDigit());
15
         assertEquals(expectedOutput, luhn.getCheckDigit());
14
     }
16
     }
15
 
17
 
18
+    @Ignore
16
     @Test
19
     @Test
17
     public void addendsDoublesEveryOtherNumberFromRight() {
20
     public void addendsDoublesEveryOtherNumberFromRight() {
18
         Luhn luhn = new Luhn(12121);
21
         Luhn luhn = new Luhn(12121);
21
         assertArrayEquals(expectedOutput, luhn.getAddends());
24
         assertArrayEquals(expectedOutput, luhn.getAddends());
22
     }
25
     }
23
 
26
 
27
+    @Ignore
24
     @Test
28
     @Test
25
     public void addendsSubtracts9WhenDoubledNumberIsMoreThan9() {
29
     public void addendsSubtracts9WhenDoubledNumberIsMoreThan9() {
26
         Luhn luhn = new Luhn(8631);
30
         Luhn luhn = new Luhn(8631);
29
         assertArrayEquals(expectedOutput, luhn.getAddends());
33
         assertArrayEquals(expectedOutput, luhn.getAddends());
30
     }
34
     }
31
 
35
 
36
+    @Ignore
32
     @Test
37
     @Test
33
     public void checkSumAddsAddendsTogether1() {
38
     public void checkSumAddsAddendsTogether1() {
34
         Luhn luhn = new Luhn(4913);
39
         Luhn luhn = new Luhn(4913);
37
         assertEquals(expectedOutput, luhn.getCheckSum());
42
         assertEquals(expectedOutput, luhn.getCheckSum());
38
     }
43
     }
39
 
44
 
45
+    @Ignore
40
     @Test
46
     @Test
41
     public void checkSumAddsAddendsTogether2() {
47
     public void checkSumAddsAddendsTogether2() {
42
         Luhn luhn = new Luhn(201773);
48
         Luhn luhn = new Luhn(201773);
45
         assertEquals(expectedOutput, luhn.getCheckSum());
51
         assertEquals(expectedOutput, luhn.getCheckSum());
46
     }
52
     }
47
 
53
 
54
+    @Ignore
48
     @Test
55
     @Test
49
     public void numberIsValidWhenChecksumMod10IsZero1() {
56
     public void numberIsValidWhenChecksumMod10IsZero1() {
50
         Luhn luhn = new Luhn(738);
57
         Luhn luhn = new Luhn(738);
53
         assertEquals(expectedOutput, luhn.isValid());
60
         assertEquals(expectedOutput, luhn.isValid());
54
     }
61
     }
55
 
62
 
63
+    @Ignore
56
     @Test
64
     @Test
57
     public void numberIsValidWhenChecksumMod10IsZero2() {
65
     public void numberIsValidWhenChecksumMod10IsZero2() {
58
         Luhn luhn = new Luhn(8739567);
66
         Luhn luhn = new Luhn(8739567);
61
         assertEquals(expectedOutput, luhn.isValid());
69
         assertEquals(expectedOutput, luhn.isValid());
62
     }
70
     }
63
 
71
 
72
+    @Ignore
64
     @Test
73
     @Test
65
     public void luhnCanCreateSimpleNumbersWithValidCheckDigit() {
74
     public void luhnCanCreateSimpleNumbersWithValidCheckDigit() {
66
         long expectedOutput = 1230;
75
         long expectedOutput = 1230;
68
         assertEquals(expectedOutput, Luhn.create(123));
77
         assertEquals(expectedOutput, Luhn.create(123));
69
     }
78
     }
70
 
79
 
80
+    @Ignore
71
     @Test
81
     @Test
72
     public void luhnCanCreateLargeNumbersWithValidCheckDigit() {
82
     public void luhnCanCreateLargeNumbersWithValidCheckDigit() {
73
         long expectedOutput = 8739567;
83
         long expectedOutput = 8739567;
75
         assertEquals(expectedOutput, Luhn.create(873956));
85
         assertEquals(expectedOutput, Luhn.create(873956));
76
     }
86
     }
77
 
87
 
88
+    @Ignore
78
     @Test
89
     @Test
79
     public void luhnCanCreateHugeNumbersWithValidCheckDigit() {
90
     public void luhnCanCreateHugeNumbersWithValidCheckDigit() {
80
         long expectedOutput = 8372637564L;
91
         long expectedOutput = 8372637564L;

+ 6
- 0
exercises/meetup/build.gradle Ver fichero

11
   testCompile "junit:junit:4.10"
11
   testCompile "junit:junit:4.10"
12
   testCompile "org.assertj:assertj-core:3.2.0"
12
   testCompile "org.assertj:assertj-core:3.2.0"
13
 }
13
 }
14
+test {
15
+  testLogging {
16
+    exceptionFormat = 'full'
17
+    events = ["passed", "failed", "skipped"]
18
+  }
19
+}

+ 92
- 0
exercises/meetup/src/test/java/MeetupTest.java Ver fichero

1
 import org.joda.time.DateTime;
1
 import org.joda.time.DateTime;
2
 import org.joda.time.DateTimeConstants;
2
 import org.joda.time.DateTimeConstants;
3
 import org.junit.Test;
3
 import org.junit.Test;
4
+import org.junit.Ignore;
4
 
5
 
5
 import static org.assertj.core.api.Assertions.assertThat;
6
 import static org.assertj.core.api.Assertions.assertThat;
6
 import static org.joda.time.DateTimeConstants.*;
7
 import static org.joda.time.DateTimeConstants.*;
9
  * We use Joda Time here to encourage the use of a saner date manipulation library.
10
  * We use Joda Time here to encourage the use of a saner date manipulation library.
10
  */
11
  */
11
 public class MeetupTest {
12
 public class MeetupTest {
13
+
12
     @Test
14
     @Test
13
     public void test_monteenth_of_may_2013() {
15
     public void test_monteenth_of_may_2013() {
14
         DateTime expected = new DateTime(2013, 5, 13, 0, 0);
16
         DateTime expected = new DateTime(2013, 5, 13, 0, 0);
16
         assertThat(meetup.day(MONDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
18
         assertThat(meetup.day(MONDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
17
     }
19
     }
18
 
20
 
21
+    @Ignore
19
     @Test
22
     @Test
20
     public void test_monteenth_of_august_2013() {
23
     public void test_monteenth_of_august_2013() {
21
         DateTime expected = new DateTime(2013, 8, 19, 0, 0);
24
         DateTime expected = new DateTime(2013, 8, 19, 0, 0);
23
         assertThat(meetup.day(MONDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
26
         assertThat(meetup.day(MONDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
24
     }
27
     }
25
 
28
 
29
+    @Ignore
26
     @Test
30
     @Test
27
     public void test_monteenth_of_september_2013() {
31
     public void test_monteenth_of_september_2013() {
28
         DateTime expected = new DateTime(2013, 9, 16, 0, 0);
32
         DateTime expected = new DateTime(2013, 9, 16, 0, 0);
30
         assertThat(meetup.day(MONDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
34
         assertThat(meetup.day(MONDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
31
     }
35
     }
32
 
36
 
37
+    @Ignore
33
     @Test
38
     @Test
34
     public void test_tuesteenth_of_march_2013() {
39
     public void test_tuesteenth_of_march_2013() {
35
         DateTime expected = new DateTime(2013, 3, 19, 0, 0);
40
         DateTime expected = new DateTime(2013, 3, 19, 0, 0);
37
         assertThat(meetup.day(TUESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
42
         assertThat(meetup.day(TUESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
38
     }
43
     }
39
 
44
 
45
+    @Ignore
40
     @Test
46
     @Test
41
     public void test_tuesteenth_of_april_2013() {
47
     public void test_tuesteenth_of_april_2013() {
42
         DateTime expected = new DateTime(2013, 4, 16, 0, 0);
48
         DateTime expected = new DateTime(2013, 4, 16, 0, 0);
44
         assertThat(meetup.day(TUESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
50
         assertThat(meetup.day(TUESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
45
     }
51
     }
46
 
52
 
53
+    @Ignore
47
     @Test
54
     @Test
48
     public void test_tuesteenth_of_august_2013() {
55
     public void test_tuesteenth_of_august_2013() {
49
         DateTime expected = new DateTime(2013, 8, 13, 0, 0);
56
         DateTime expected = new DateTime(2013, 8, 13, 0, 0);
51
         assertThat(meetup.day(TUESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
58
         assertThat(meetup.day(TUESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
52
     }
59
     }
53
 
60
 
61
+    @Ignore
54
     @Test
62
     @Test
55
     public void test_wednesteenth_of_january_2013() {
63
     public void test_wednesteenth_of_january_2013() {
56
         DateTime expected = new DateTime(2013, 1, 16, 0, 0);
64
         DateTime expected = new DateTime(2013, 1, 16, 0, 0);
58
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
66
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
59
     }
67
     }
60
 
68
 
69
+    @Ignore
61
     @Test
70
     @Test
62
     public void test_wednesteenth_of_february_2013() {
71
     public void test_wednesteenth_of_february_2013() {
63
         DateTime expected = new DateTime(2013, 2, 13, 0, 0);
72
         DateTime expected = new DateTime(2013, 2, 13, 0, 0);
65
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
74
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
66
     }
75
     }
67
 
76
 
77
+    @Ignore
68
     @Test
78
     @Test
69
     public void test_wednesteenth_of_june_2013() {
79
     public void test_wednesteenth_of_june_2013() {
70
         DateTime expected = new DateTime(2013, 6, 19, 0, 0);
80
         DateTime expected = new DateTime(2013, 6, 19, 0, 0);
72
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
82
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
73
     }
83
     }
74
 
84
 
85
+    @Ignore
75
     @Test
86
     @Test
76
     public void test_thursteenth_of_may_2013() {
87
     public void test_thursteenth_of_may_2013() {
77
         DateTime expected = new DateTime(2013, 5, 16, 0, 0);
88
         DateTime expected = new DateTime(2013, 5, 16, 0, 0);
79
         assertThat(meetup.day(THURSDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
90
         assertThat(meetup.day(THURSDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
80
     }
91
     }
81
 
92
 
93
+    @Ignore
82
     @Test
94
     @Test
83
     public void test_thursteenth_of_june_2013() {
95
     public void test_thursteenth_of_june_2013() {
84
         DateTime expected = new DateTime(2013, 6, 13, 0, 0);
96
         DateTime expected = new DateTime(2013, 6, 13, 0, 0);
86
         assertThat(meetup.day(THURSDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
98
         assertThat(meetup.day(THURSDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
87
     }
99
     }
88
 
100
 
101
+    @Ignore
89
     @Test
102
     @Test
90
     public void test_thursteenth_of_september_2013() {
103
     public void test_thursteenth_of_september_2013() {
91
         DateTime expected = new DateTime(2013, 9, 19, 0, 0);
104
         DateTime expected = new DateTime(2013, 9, 19, 0, 0);
93
         assertThat(meetup.day(THURSDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
106
         assertThat(meetup.day(THURSDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
94
     }
107
     }
95
 
108
 
109
+    @Ignore
96
     @Test
110
     @Test
97
     public void test_friteenth_of_april_2013() {
111
     public void test_friteenth_of_april_2013() {
98
         DateTime expected = new DateTime(2013, 4, 19, 0, 0);
112
         DateTime expected = new DateTime(2013, 4, 19, 0, 0);
100
         assertThat(meetup.day(FRIDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
114
         assertThat(meetup.day(FRIDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
101
     }
115
     }
102
 
116
 
117
+    @Ignore
103
     @Test
118
     @Test
104
     public void test_friteenth_of_august_2013() {
119
     public void test_friteenth_of_august_2013() {
105
         DateTime expected = new DateTime(2013, 8, 16, 0, 0);
120
         DateTime expected = new DateTime(2013, 8, 16, 0, 0);
107
         assertThat(meetup.day(FRIDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
122
         assertThat(meetup.day(FRIDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
108
     }
123
     }
109
 
124
 
125
+    @Ignore
110
     @Test
126
     @Test
111
     public void test_friteenth_of_september_2013() {
127
     public void test_friteenth_of_september_2013() {
112
         DateTime expected = new DateTime(2013, 9, 13, 0, 0);
128
         DateTime expected = new DateTime(2013, 9, 13, 0, 0);
114
         assertThat(meetup.day(FRIDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
130
         assertThat(meetup.day(FRIDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
115
     }
131
     }
116
 
132
 
133
+    @Ignore
117
     @Test
134
     @Test
118
     public void test_saturteenth_of_february_2013() {
135
     public void test_saturteenth_of_february_2013() {
119
         DateTime expected = new DateTime(2013, 2, 16, 0, 0);
136
         DateTime expected = new DateTime(2013, 2, 16, 0, 0);
121
         assertThat(meetup.day(SATURDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
138
         assertThat(meetup.day(SATURDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
122
     }
139
     }
123
 
140
 
141
+    @Ignore
124
     @Test
142
     @Test
125
     public void test_saturteenth_of_april_2013() {
143
     public void test_saturteenth_of_april_2013() {
126
         DateTime expected = new DateTime(2013, 4, 13, 0, 0);
144
         DateTime expected = new DateTime(2013, 4, 13, 0, 0);
128
         assertThat(meetup.day(SATURDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
146
         assertThat(meetup.day(SATURDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
129
     }
147
     }
130
 
148
 
149
+    @Ignore
131
     @Test
150
     @Test
132
     public void test_saturteenth_of_october_2013() {
151
     public void test_saturteenth_of_october_2013() {
133
         DateTime expected = new DateTime(2013, 10, 19, 0, 0);
152
         DateTime expected = new DateTime(2013, 10, 19, 0, 0);
135
         assertThat(meetup.day(SATURDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
154
         assertThat(meetup.day(SATURDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
136
     }
155
     }
137
 
156
 
157
+    @Ignore
138
     @Test
158
     @Test
139
     public void test_sunteenth_of_may_2013() {
159
     public void test_sunteenth_of_may_2013() {
140
         DateTime expected = new DateTime(2013, 5, 19, 0, 0);
160
         DateTime expected = new DateTime(2013, 5, 19, 0, 0);
142
         assertThat(meetup.day(SUNDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
162
         assertThat(meetup.day(SUNDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
143
     }
163
     }
144
 
164
 
165
+    @Ignore
145
     @Test
166
     @Test
146
     public void test_sunteenth_of_june_2013() {
167
     public void test_sunteenth_of_june_2013() {
147
         DateTime expected = new DateTime(2013, 6, 16, 0, 0);
168
         DateTime expected = new DateTime(2013, 6, 16, 0, 0);
149
         assertThat(meetup.day(SUNDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
170
         assertThat(meetup.day(SUNDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
150
     }
171
     }
151
 
172
 
173
+    @Ignore
152
     @Test
174
     @Test
153
     public void test_sunteenth_of_october_2013() {
175
     public void test_sunteenth_of_october_2013() {
154
         DateTime expected = new DateTime(2013, 10, 13, 0, 0);
176
         DateTime expected = new DateTime(2013, 10, 13, 0, 0);
156
         assertThat(meetup.day(SUNDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
178
         assertThat(meetup.day(SUNDAY, MeetupSchedule.TEENTH)).isEqualTo(expected);
157
     }
179
     }
158
 
180
 
181
+    @Ignore
159
     @Test
182
     @Test
160
     public void test_first_monday_of_march_2013() {
183
     public void test_first_monday_of_march_2013() {
161
         DateTime expected = new DateTime(2013, 3, 4, 0, 0);
184
         DateTime expected = new DateTime(2013, 3, 4, 0, 0);
163
         assertThat(meetup.day(MONDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
186
         assertThat(meetup.day(MONDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
164
     }
187
     }
165
 
188
 
189
+    @Ignore
166
     @Test
190
     @Test
167
     public void test_first_monday_of_april_2013() {
191
     public void test_first_monday_of_april_2013() {
168
         DateTime expected = new DateTime(2013, 4, 1, 0, 0);
192
         DateTime expected = new DateTime(2013, 4, 1, 0, 0);
170
         assertThat(meetup.day(MONDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
194
         assertThat(meetup.day(MONDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
171
     }
195
     }
172
 
196
 
197
+    @Ignore
173
     @Test
198
     @Test
174
     public void test_first_tuesday_of_may_2013() {
199
     public void test_first_tuesday_of_may_2013() {
175
         DateTime expected = new DateTime(2013, 5, 7, 0, 0);
200
         DateTime expected = new DateTime(2013, 5, 7, 0, 0);
177
         assertThat(meetup.day(TUESDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
202
         assertThat(meetup.day(TUESDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
178
     }
203
     }
179
 
204
 
205
+    @Ignore
180
     @Test
206
     @Test
181
     public void test_first_tuesday_of_june_2013() {
207
     public void test_first_tuesday_of_june_2013() {
182
         DateTime expected = new DateTime(2013, 6, 4, 0, 0);
208
         DateTime expected = new DateTime(2013, 6, 4, 0, 0);
184
         assertThat(meetup.day(TUESDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
210
         assertThat(meetup.day(TUESDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
185
     }
211
     }
186
 
212
 
213
+    @Ignore
187
     @Test
214
     @Test
188
     public void test_first_wednesday_of_july_2013() {
215
     public void test_first_wednesday_of_july_2013() {
189
         DateTime expected = new DateTime(2013, 7, 3, 0, 0);
216
         DateTime expected = new DateTime(2013, 7, 3, 0, 0);
191
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
218
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
192
     }
219
     }
193
 
220
 
221
+    @Ignore
194
     @Test
222
     @Test
195
     public void test_first_wednesday_of_august_2013() {
223
     public void test_first_wednesday_of_august_2013() {
196
         DateTime expected = new DateTime(2013, 8, 7, 0, 0);
224
         DateTime expected = new DateTime(2013, 8, 7, 0, 0);
198
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
226
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
199
     }
227
     }
200
 
228
 
229
+    @Ignore
201
     @Test
230
     @Test
202
     public void test_first_thursday_of_september_2013() {
231
     public void test_first_thursday_of_september_2013() {
203
         DateTime expected = new DateTime(2013, 9, 5, 0, 0);
232
         DateTime expected = new DateTime(2013, 9, 5, 0, 0);
205
         assertThat(meetup.day(THURSDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
234
         assertThat(meetup.day(THURSDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
206
     }
235
     }
207
 
236
 
237
+    @Ignore
208
     @Test
238
     @Test
209
     public void test_first_thursday_of_october_2013() {
239
     public void test_first_thursday_of_october_2013() {
210
         DateTime expected = new DateTime(2013, 10, 3, 0, 0);
240
         DateTime expected = new DateTime(2013, 10, 3, 0, 0);
212
         assertThat(meetup.day(THURSDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
242
         assertThat(meetup.day(THURSDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
213
     }
243
     }
214
 
244
 
245
+    @Ignore
215
     @Test
246
     @Test
216
     public void test_first_friday_of_november_2013() {
247
     public void test_first_friday_of_november_2013() {
217
         DateTime expected = new DateTime(2013, 11, 1, 0, 0);
248
         DateTime expected = new DateTime(2013, 11, 1, 0, 0);
219
         assertThat(meetup.day(FRIDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
250
         assertThat(meetup.day(FRIDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
220
     }
251
     }
221
 
252
 
253
+    @Ignore
222
     @Test
254
     @Test
223
     public void test_first_friday_of_december_2013() {
255
     public void test_first_friday_of_december_2013() {
224
         DateTime expected = new DateTime(2013, 12, 6, 0, 0);
256
         DateTime expected = new DateTime(2013, 12, 6, 0, 0);
226
         assertThat(meetup.day(FRIDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
258
         assertThat(meetup.day(FRIDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
227
     }
259
     }
228
 
260
 
261
+    @Ignore
229
     @Test
262
     @Test
230
     public void test_first_saturday_of_january_2013() {
263
     public void test_first_saturday_of_january_2013() {
231
         DateTime expected = new DateTime(2013, 1, 5, 0, 0);
264
         DateTime expected = new DateTime(2013, 1, 5, 0, 0);
233
         assertThat(meetup.day(SATURDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
266
         assertThat(meetup.day(SATURDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
234
     }
267
     }
235
 
268
 
269
+    @Ignore
236
     @Test
270
     @Test
237
     public void test_first_saturday_of_february_2013() {
271
     public void test_first_saturday_of_february_2013() {
238
         DateTime expected = new DateTime(2013, 2, 2, 0, 0);
272
         DateTime expected = new DateTime(2013, 2, 2, 0, 0);
240
         assertThat(meetup.day(SATURDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
274
         assertThat(meetup.day(SATURDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
241
     }
275
     }
242
 
276
 
277
+    @Ignore
243
     @Test
278
     @Test
244
     public void test_first_sunday_of_march_2013() {
279
     public void test_first_sunday_of_march_2013() {
245
         DateTime expected = new DateTime(2013, 3, 3, 0, 0);
280
         DateTime expected = new DateTime(2013, 3, 3, 0, 0);
247
         assertThat(meetup.day(SUNDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
282
         assertThat(meetup.day(SUNDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
248
     }
283
     }
249
 
284
 
285
+    @Ignore
250
     @Test
286
     @Test
251
     public void test_first_sunday_of_april_2013() {
287
     public void test_first_sunday_of_april_2013() {
252
         DateTime expected = new DateTime(2013, 4, 7, 0, 0);
288
         DateTime expected = new DateTime(2013, 4, 7, 0, 0);
254
         assertThat(meetup.day(SUNDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
290
         assertThat(meetup.day(SUNDAY, MeetupSchedule.FIRST)).isEqualTo(expected);
255
     }
291
     }
256
 
292
 
293
+    @Ignore
257
     @Test
294
     @Test
258
     public void test_second_monday_of_march_2013() {
295
     public void test_second_monday_of_march_2013() {
259
         DateTime expected = new DateTime(2013, 3, 11, 0, 0);
296
         DateTime expected = new DateTime(2013, 3, 11, 0, 0);
261
         assertThat(meetup.day(MONDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
298
         assertThat(meetup.day(MONDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
262
     }
299
     }
263
 
300
 
301
+    @Ignore
264
     @Test
302
     @Test
265
     public void test_second_monday_of_april_2013() {
303
     public void test_second_monday_of_april_2013() {
266
         DateTime expected = new DateTime(2013, 4, 8, 0, 0);
304
         DateTime expected = new DateTime(2013, 4, 8, 0, 0);
268
         assertThat(meetup.day(MONDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
306
         assertThat(meetup.day(MONDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
269
     }
307
     }
270
 
308
 
309
+    @Ignore
271
     @Test
310
     @Test
272
     public void test_second_tuesday_of_may_2013() {
311
     public void test_second_tuesday_of_may_2013() {
273
         DateTime expected = new DateTime(2013, 5, 14, 0, 0);
312
         DateTime expected = new DateTime(2013, 5, 14, 0, 0);
275
         assertThat(meetup.day(TUESDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
314
         assertThat(meetup.day(TUESDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
276
     }
315
     }
277
 
316
 
317
+    @Ignore
278
     @Test
318
     @Test
279
     public void test_second_tuesday_of_june_2013() {
319
     public void test_second_tuesday_of_june_2013() {
280
         DateTime expected = new DateTime(2013, 6, 11, 0, 0);
320
         DateTime expected = new DateTime(2013, 6, 11, 0, 0);
282
         assertThat(meetup.day(TUESDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
322
         assertThat(meetup.day(TUESDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
283
     }
323
     }
284
 
324
 
325
+    @Ignore
285
     @Test
326
     @Test
286
     public void test_second_wednesday_of_july_2013() {
327
     public void test_second_wednesday_of_july_2013() {
287
         DateTime expected = new DateTime(2013, 7, 10, 0, 0);
328
         DateTime expected = new DateTime(2013, 7, 10, 0, 0);
289
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
330
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
290
     }
331
     }
291
 
332
 
333
+    @Ignore
292
     @Test
334
     @Test
293
     public void test_second_wednesday_of_august_2013() {
335
     public void test_second_wednesday_of_august_2013() {
294
         DateTime expected = new DateTime(2013, 8, 14, 0, 0);
336
         DateTime expected = new DateTime(2013, 8, 14, 0, 0);
296
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
338
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
297
     }
339
     }
298
 
340
 
341
+    @Ignore
299
     @Test
342
     @Test
300
     public void test_second_thursday_of_september_2013() {
343
     public void test_second_thursday_of_september_2013() {
301
         DateTime expected = new DateTime(2013, 9, 12, 0, 0);
344
         DateTime expected = new DateTime(2013, 9, 12, 0, 0);
303
         assertThat(meetup.day(THURSDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
346
         assertThat(meetup.day(THURSDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
304
     }
347
     }
305
 
348
 
349
+    @Ignore
306
     @Test
350
     @Test
307
     public void test_second_thursday_of_october_2013() {
351
     public void test_second_thursday_of_october_2013() {
308
         DateTime expected = new DateTime(2013, 10, 10, 0, 0);
352
         DateTime expected = new DateTime(2013, 10, 10, 0, 0);
310
         assertThat(meetup.day(THURSDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
354
         assertThat(meetup.day(THURSDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
311
     }
355
     }
312
 
356
 
357
+    @Ignore
313
     @Test
358
     @Test
314
     public void test_second_friday_of_november_2013() {
359
     public void test_second_friday_of_november_2013() {
315
         DateTime expected = new DateTime(2013, 11, 8, 0, 0);
360
         DateTime expected = new DateTime(2013, 11, 8, 0, 0);
317
         assertThat(meetup.day(FRIDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
362
         assertThat(meetup.day(FRIDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
318
     }
363
     }
319
 
364
 
365
+    @Ignore
320
     @Test
366
     @Test
321
     public void test_second_friday_of_december_2013() {
367
     public void test_second_friday_of_december_2013() {
322
         DateTime expected = new DateTime(2013, 12, 13, 0, 0);
368
         DateTime expected = new DateTime(2013, 12, 13, 0, 0);
324
         assertThat(meetup.day(FRIDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
370
         assertThat(meetup.day(FRIDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
325
     }
371
     }
326
 
372
 
373
+    @Ignore
327
     @Test
374
     @Test
328
     public void test_second_saturday_of_january_2013() {
375
     public void test_second_saturday_of_january_2013() {
329
         DateTime expected = new DateTime(2013, 1, 12, 0, 0);
376
         DateTime expected = new DateTime(2013, 1, 12, 0, 0);
331
         assertThat(meetup.day(SATURDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
378
         assertThat(meetup.day(SATURDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
332
     }
379
     }
333
 
380
 
381
+    @Ignore
334
     @Test
382
     @Test
335
     public void test_second_saturday_of_february_2013() {
383
     public void test_second_saturday_of_february_2013() {
336
         DateTime expected = new DateTime(2013, 2, 9, 0, 0);
384
         DateTime expected = new DateTime(2013, 2, 9, 0, 0);
338
         assertThat(meetup.day(SATURDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
386
         assertThat(meetup.day(SATURDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
339
     }
387
     }
340
 
388
 
389
+    @Ignore
341
     @Test
390
     @Test
342
     public void test_second_sunday_of_march_2013() {
391
     public void test_second_sunday_of_march_2013() {
343
         DateTime expected = new DateTime(2013, 3, 10, 0, 0);
392
         DateTime expected = new DateTime(2013, 3, 10, 0, 0);
345
         assertThat(meetup.day(SUNDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
394
         assertThat(meetup.day(SUNDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
346
     }
395
     }
347
 
396
 
397
+    @Ignore
348
     @Test
398
     @Test
349
     public void test_second_sunday_of_april_2013() {
399
     public void test_second_sunday_of_april_2013() {
350
         DateTime expected = new DateTime(2013, 4, 14, 0, 0);
400
         DateTime expected = new DateTime(2013, 4, 14, 0, 0);
352
         assertThat(meetup.day(SUNDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
402
         assertThat(meetup.day(SUNDAY, MeetupSchedule.SECOND)).isEqualTo(expected);
353
     }
403
     }
354
 
404
 
405
+    @Ignore
355
     @Test
406
     @Test
356
     public void test_third_monday_of_march_2013() {
407
     public void test_third_monday_of_march_2013() {
357
         DateTime expected = new DateTime(2013, 3, 18, 0, 0);
408
         DateTime expected = new DateTime(2013, 3, 18, 0, 0);
359
         assertThat(meetup.day(MONDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
410
         assertThat(meetup.day(MONDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
360
     }
411
     }
361
 
412
 
413
+    @Ignore
362
     @Test
414
     @Test
363
     public void test_third_monday_of_april_2013() {
415
     public void test_third_monday_of_april_2013() {
364
         DateTime expected = new DateTime(2013, 4, 15, 0, 0);
416
         DateTime expected = new DateTime(2013, 4, 15, 0, 0);
366
         assertThat(meetup.day(MONDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
418
         assertThat(meetup.day(MONDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
367
     }
419
     }
368
 
420
 
421
+    @Ignore
369
     @Test
422
     @Test
370
     public void test_third_tuesday_of_may_2013() {
423
     public void test_third_tuesday_of_may_2013() {
371
         DateTime expected = new DateTime(2013, 5, 21, 0, 0);
424
         DateTime expected = new DateTime(2013, 5, 21, 0, 0);
373
         assertThat(meetup.day(TUESDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
426
         assertThat(meetup.day(TUESDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
374
     }
427
     }
375
 
428
 
429
+    @Ignore
376
     @Test
430
     @Test
377
     public void test_third_tuesday_of_june_2013() {
431
     public void test_third_tuesday_of_june_2013() {
378
         DateTime expected = new DateTime(2013, 6, 18, 0, 0);
432
         DateTime expected = new DateTime(2013, 6, 18, 0, 0);
380
         assertThat(meetup.day(TUESDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
434
         assertThat(meetup.day(TUESDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
381
     }
435
     }
382
 
436
 
437
+    @Ignore
383
     @Test
438
     @Test
384
     public void test_third_wednesday_of_july_2013() {
439
     public void test_third_wednesday_of_july_2013() {
385
         DateTime expected = new DateTime(2013, 7, 17, 0, 0);
440
         DateTime expected = new DateTime(2013, 7, 17, 0, 0);
387
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
442
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
388
     }
443
     }
389
 
444
 
445
+    @Ignore
390
     @Test
446
     @Test
391
     public void test_third_wednesday_of_august_2013() {
447
     public void test_third_wednesday_of_august_2013() {
392
         DateTime expected = new DateTime(2013, 8, 21, 0, 0);
448
         DateTime expected = new DateTime(2013, 8, 21, 0, 0);
394
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
450
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
395
     }
451
     }
396
 
452
 
453
+    @Ignore
397
     @Test
454
     @Test
398
     public void test_third_thursday_of_september_2013() {
455
     public void test_third_thursday_of_september_2013() {
399
         DateTime expected = new DateTime(2013, 9, 19, 0, 0);
456
         DateTime expected = new DateTime(2013, 9, 19, 0, 0);
401
         assertThat(meetup.day(THURSDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
458
         assertThat(meetup.day(THURSDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
402
     }
459
     }
403
 
460
 
461
+    @Ignore
404
     @Test
462
     @Test
405
     public void test_third_thursday_of_october_2013() {
463
     public void test_third_thursday_of_october_2013() {
406
         DateTime expected = new DateTime(2013, 10, 17, 0, 0);
464
         DateTime expected = new DateTime(2013, 10, 17, 0, 0);
408
         assertThat(meetup.day(THURSDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
466
         assertThat(meetup.day(THURSDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
409
     }
467
     }
410
 
468
 
469
+    @Ignore
411
     @Test
470
     @Test
412
     public void test_third_friday_of_november_2013() {
471
     public void test_third_friday_of_november_2013() {
413
         DateTime expected = new DateTime(2013, 11, 15, 0, 0);
472
         DateTime expected = new DateTime(2013, 11, 15, 0, 0);
415
         assertThat(meetup.day(FRIDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
474
         assertThat(meetup.day(FRIDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
416
     }
475
     }
417
 
476
 
477
+    @Ignore
418
     @Test
478
     @Test
419
     public void test_third_friday_of_december_2013() {
479
     public void test_third_friday_of_december_2013() {
420
         DateTime expected = new DateTime(2013, 12, 20, 0, 0);
480
         DateTime expected = new DateTime(2013, 12, 20, 0, 0);
422
         assertThat(meetup.day(FRIDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
482
         assertThat(meetup.day(FRIDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
423
     }
483
     }
424
 
484
 
485
+    @Ignore
425
     @Test
486
     @Test
426
     public void test_third_saturday_of_january_2013() {
487
     public void test_third_saturday_of_january_2013() {
427
         DateTime expected = new DateTime(2013, 1, 19, 0, 0);
488
         DateTime expected = new DateTime(2013, 1, 19, 0, 0);
429
         assertThat(meetup.day(SATURDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
490
         assertThat(meetup.day(SATURDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
430
     }
491
     }
431
 
492
 
493
+    @Ignore
432
     @Test
494
     @Test
433
     public void test_third_saturday_of_february_2013() {
495
     public void test_third_saturday_of_february_2013() {
434
         DateTime expected = new DateTime(2013, 2, 16, 0, 0);
496
         DateTime expected = new DateTime(2013, 2, 16, 0, 0);
436
         assertThat(meetup.day(SATURDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
498
         assertThat(meetup.day(SATURDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
437
     }
499
     }
438
 
500
 
501
+    @Ignore
439
     @Test
502
     @Test
440
     public void test_third_sunday_of_march_2013() {
503
     public void test_third_sunday_of_march_2013() {
441
         DateTime expected = new DateTime(2013, 3, 17, 0, 0);
504
         DateTime expected = new DateTime(2013, 3, 17, 0, 0);
443
         assertThat(meetup.day(SUNDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
506
         assertThat(meetup.day(SUNDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
444
     }
507
     }
445
 
508
 
509
+    @Ignore
446
     @Test
510
     @Test
447
     public void test_third_sunday_of_april_2013() {
511
     public void test_third_sunday_of_april_2013() {
448
         DateTime expected = new DateTime(2013, 4, 21, 0, 0);
512
         DateTime expected = new DateTime(2013, 4, 21, 0, 0);
450
         assertThat(meetup.day(SUNDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
514
         assertThat(meetup.day(SUNDAY, MeetupSchedule.THIRD)).isEqualTo(expected);
451
     }
515
     }
452
 
516
 
517
+    @Ignore
453
     @Test
518
     @Test
454
     public void test_fourth_monday_of_march_2013() {
519
     public void test_fourth_monday_of_march_2013() {
455
         DateTime expected = new DateTime(2013, 3, 25, 0, 0);
520
         DateTime expected = new DateTime(2013, 3, 25, 0, 0);
457
         assertThat(meetup.day(MONDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
522
         assertThat(meetup.day(MONDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
458
     }
523
     }
459
 
524
 
525
+    @Ignore
460
     @Test
526
     @Test
461
     public void test_fourth_monday_of_april_2013() {
527
     public void test_fourth_monday_of_april_2013() {
462
         DateTime expected = new DateTime(2013, 4, 22, 0, 0);
528
         DateTime expected = new DateTime(2013, 4, 22, 0, 0);
464
         assertThat(meetup.day(MONDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
530
         assertThat(meetup.day(MONDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
465
     }
531
     }
466
 
532
 
533
+    @Ignore
467
     @Test
534
     @Test
468
     public void test_fourth_tuesday_of_may_2013() {
535
     public void test_fourth_tuesday_of_may_2013() {
469
         DateTime expected = new DateTime(2013, 5, 28, 0, 0);
536
         DateTime expected = new DateTime(2013, 5, 28, 0, 0);
471
         assertThat(meetup.day(TUESDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
538
         assertThat(meetup.day(TUESDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
472
     }
539
     }
473
 
540
 
541
+    @Ignore
474
     @Test
542
     @Test
475
     public void test_fourth_tuesday_of_june_2013() {
543
     public void test_fourth_tuesday_of_june_2013() {
476
         DateTime expected = new DateTime(2013, 6, 25, 0, 0);
544
         DateTime expected = new DateTime(2013, 6, 25, 0, 0);
478
         assertThat(meetup.day(TUESDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
546
         assertThat(meetup.day(TUESDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
479
     }
547
     }
480
 
548
 
549
+    @Ignore
481
     @Test
550
     @Test
482
     public void test_fourth_wednesday_of_july_2013() {
551
     public void test_fourth_wednesday_of_july_2013() {
483
         DateTime expected = new DateTime(2013, 7, 24, 0, 0);
552
         DateTime expected = new DateTime(2013, 7, 24, 0, 0);
485
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
554
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
486
     }
555
     }
487
 
556
 
557
+    @Ignore
488
     @Test
558
     @Test
489
     public void test_fourth_wednesday_of_august_2013() {
559
     public void test_fourth_wednesday_of_august_2013() {
490
         DateTime expected = new DateTime(2013, 8, 28, 0, 0);
560
         DateTime expected = new DateTime(2013, 8, 28, 0, 0);
492
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
562
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
493
     }
563
     }
494
 
564
 
565
+    @Ignore
495
     @Test
566
     @Test
496
     public void test_fourth_thursday_of_september_2013() {
567
     public void test_fourth_thursday_of_september_2013() {
497
         DateTime expected = new DateTime(2013, 9, 26, 0, 0);
568
         DateTime expected = new DateTime(2013, 9, 26, 0, 0);
499
         assertThat(meetup.day(THURSDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
570
         assertThat(meetup.day(THURSDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
500
     }
571
     }
501
 
572
 
573
+    @Ignore
502
     @Test
574
     @Test
503
     public void test_fourth_thursday_of_october_2013() {
575
     public void test_fourth_thursday_of_october_2013() {
504
         DateTime expected = new DateTime(2013, 10, 24, 0, 0);
576
         DateTime expected = new DateTime(2013, 10, 24, 0, 0);
506
         assertThat(meetup.day(THURSDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
578
         assertThat(meetup.day(THURSDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
507
     }
579
     }
508
 
580
 
581
+    @Ignore
509
     @Test
582
     @Test
510
     public void test_fourth_friday_of_november_2013() {
583
     public void test_fourth_friday_of_november_2013() {
511
         DateTime expected = new DateTime(2013, 11, 22, 0, 0);
584
         DateTime expected = new DateTime(2013, 11, 22, 0, 0);
513
         assertThat(meetup.day(FRIDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
586
         assertThat(meetup.day(FRIDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
514
     }
587
     }
515
 
588
 
589
+    @Ignore
516
     @Test
590
     @Test
517
     public void test_fourth_friday_of_december_2013() {
591
     public void test_fourth_friday_of_december_2013() {
518
         DateTime expected = new DateTime(2013, 12, 27, 0, 0);
592
         DateTime expected = new DateTime(2013, 12, 27, 0, 0);
520
         assertThat(meetup.day(FRIDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
594
         assertThat(meetup.day(FRIDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
521
     }
595
     }
522
 
596
 
597
+    @Ignore
523
     @Test
598
     @Test
524
     public void test_fourth_saturday_of_january_2013() {
599
     public void test_fourth_saturday_of_january_2013() {
525
         DateTime expected = new DateTime(2013, 1, 26, 0, 0);
600
         DateTime expected = new DateTime(2013, 1, 26, 0, 0);
527
         assertThat(meetup.day(SATURDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
602
         assertThat(meetup.day(SATURDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
528
     }
603
     }
529
 
604
 
605
+    @Ignore
530
     @Test
606
     @Test
531
     public void test_fourth_saturday_of_february_2013() {
607
     public void test_fourth_saturday_of_february_2013() {
532
         DateTime expected = new DateTime(2013, 2, 23, 0, 0);
608
         DateTime expected = new DateTime(2013, 2, 23, 0, 0);
534
         assertThat(meetup.day(SATURDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
610
         assertThat(meetup.day(SATURDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
535
     }
611
     }
536
 
612
 
613
+    @Ignore
537
     @Test
614
     @Test
538
     public void test_fourth_sunday_of_march_2013() {
615
     public void test_fourth_sunday_of_march_2013() {
539
         DateTime expected = new DateTime(2013, 3, 24, 0, 0);
616
         DateTime expected = new DateTime(2013, 3, 24, 0, 0);
541
         assertThat(meetup.day(SUNDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
618
         assertThat(meetup.day(SUNDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
542
     }
619
     }
543
 
620
 
621
+    @Ignore
544
     @Test
622
     @Test
545
     public void test_fourth_sunday_of_april_2013() {
623
     public void test_fourth_sunday_of_april_2013() {
546
         DateTime expected = new DateTime(2013, 4, 28, 0, 0);
624
         DateTime expected = new DateTime(2013, 4, 28, 0, 0);
548
         assertThat(meetup.day(SUNDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
626
         assertThat(meetup.day(SUNDAY, MeetupSchedule.FOURTH)).isEqualTo(expected);
549
     }
627
     }
550
 
628
 
629
+    @Ignore
551
     @Test
630
     @Test
552
     public void test_last_monday_of_march_2013() {
631
     public void test_last_monday_of_march_2013() {
553
         DateTime expected = new DateTime(2013, 3, 25, 0, 0);
632
         DateTime expected = new DateTime(2013, 3, 25, 0, 0);
555
         assertThat(meetup.day(MONDAY, MeetupSchedule.LAST)).isEqualTo(expected);
634
         assertThat(meetup.day(MONDAY, MeetupSchedule.LAST)).isEqualTo(expected);
556
     }
635
     }
557
 
636
 
637
+    @Ignore
558
     @Test
638
     @Test
559
     public void test_last_monday_of_april_2013() {
639
     public void test_last_monday_of_april_2013() {
560
         DateTime expected = new DateTime(2013, 4, 29, 0, 0);
640
         DateTime expected = new DateTime(2013, 4, 29, 0, 0);
562
         assertThat(meetup.day(MONDAY, MeetupSchedule.LAST)).isEqualTo(expected);
642
         assertThat(meetup.day(MONDAY, MeetupSchedule.LAST)).isEqualTo(expected);
563
     }
643
     }
564
 
644
 
645
+    @Ignore
565
     @Test
646
     @Test
566
     public void test_last_tuesday_of_may_2013() {
647
     public void test_last_tuesday_of_may_2013() {
567
         DateTime expected = new DateTime(2013, 5, 28, 0, 0);
648
         DateTime expected = new DateTime(2013, 5, 28, 0, 0);
569
         assertThat(meetup.day(TUESDAY, MeetupSchedule.LAST)).isEqualTo(expected);
650
         assertThat(meetup.day(TUESDAY, MeetupSchedule.LAST)).isEqualTo(expected);
570
     }
651
     }
571
 
652
 
653
+    @Ignore
572
     @Test
654
     @Test
573
     public void test_last_tuesday_of_june_2013() {
655
     public void test_last_tuesday_of_june_2013() {
574
         DateTime expected = new DateTime(2013, 6, 25, 0, 0);
656
         DateTime expected = new DateTime(2013, 6, 25, 0, 0);
576
         assertThat(meetup.day(TUESDAY, MeetupSchedule.LAST)).isEqualTo(expected);
658
         assertThat(meetup.day(TUESDAY, MeetupSchedule.LAST)).isEqualTo(expected);
577
     }
659
     }
578
 
660
 
661
+    @Ignore
579
     @Test
662
     @Test
580
     public void test_last_wednesday_of_july_2013() {
663
     public void test_last_wednesday_of_july_2013() {
581
         DateTime expected = new DateTime(2013, 7, 31, 0, 0);
664
         DateTime expected = new DateTime(2013, 7, 31, 0, 0);
583
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.LAST)).isEqualTo(expected);
666
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.LAST)).isEqualTo(expected);
584
     }
667
     }
585
 
668
 
669
+    @Ignore
586
     @Test
670
     @Test
587
     public void test_last_wednesday_of_august_2013() {
671
     public void test_last_wednesday_of_august_2013() {
588
         DateTime expected = new DateTime(2013, 8, 28, 0, 0);
672
         DateTime expected = new DateTime(2013, 8, 28, 0, 0);
590
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.LAST)).isEqualTo(expected);
674
         assertThat(meetup.day(WEDNESDAY, MeetupSchedule.LAST)).isEqualTo(expected);
591
     }
675
     }
592
 
676
 
677
+    @Ignore
593
     @Test
678
     @Test
594
     public void test_last_thursday_of_september_2013() {
679
     public void test_last_thursday_of_september_2013() {
595
         DateTime expected = new DateTime(2013, 9, 26, 0, 0);
680
         DateTime expected = new DateTime(2013, 9, 26, 0, 0);
597
         assertThat(meetup.day(THURSDAY, MeetupSchedule.LAST)).isEqualTo(expected);
682
         assertThat(meetup.day(THURSDAY, MeetupSchedule.LAST)).isEqualTo(expected);
598
     }
683
     }
599
 
684
 
685
+    @Ignore
600
     @Test
686
     @Test
601
     public void test_last_thursday_of_october_2013() {
687
     public void test_last_thursday_of_october_2013() {
602
         DateTime expected = new DateTime(2013, 10, 31, 0, 0);
688
         DateTime expected = new DateTime(2013, 10, 31, 0, 0);
604
         assertThat(meetup.day(THURSDAY, MeetupSchedule.LAST)).isEqualTo(expected);
690
         assertThat(meetup.day(THURSDAY, MeetupSchedule.LAST)).isEqualTo(expected);
605
     }
691
     }
606
 
692
 
693
+    @Ignore
607
     @Test
694
     @Test
608
     public void test_last_friday_of_november_2013() {
695
     public void test_last_friday_of_november_2013() {
609
         DateTime expected = new DateTime(2013, 11, 29, 0, 0);
696
         DateTime expected = new DateTime(2013, 11, 29, 0, 0);
611
         assertThat(meetup.day(FRIDAY, MeetupSchedule.LAST)).isEqualTo(expected);
698
         assertThat(meetup.day(FRIDAY, MeetupSchedule.LAST)).isEqualTo(expected);
612
     }
699
     }
613
 
700
 
701
+    @Ignore
614
     @Test
702
     @Test
615
     public void test_last_friday_of_december_2013() {
703
     public void test_last_friday_of_december_2013() {
616
         DateTime expected = new DateTime(2013, 12, 27, 0, 0);
704
         DateTime expected = new DateTime(2013, 12, 27, 0, 0);
618
         assertThat(meetup.day(FRIDAY, MeetupSchedule.LAST)).isEqualTo(expected);
706
         assertThat(meetup.day(FRIDAY, MeetupSchedule.LAST)).isEqualTo(expected);
619
     }
707
     }
620
 
708
 
709
+    @Ignore
621
     @Test
710
     @Test
622
     public void test_last_saturday_of_january_2013() {
711
     public void test_last_saturday_of_january_2013() {
623
         DateTime expected = new DateTime(2013, 1, 26, 0, 0);
712
         DateTime expected = new DateTime(2013, 1, 26, 0, 0);
625
         assertThat(meetup.day(SATURDAY, MeetupSchedule.LAST)).isEqualTo(expected);
714
         assertThat(meetup.day(SATURDAY, MeetupSchedule.LAST)).isEqualTo(expected);
626
     }
715
     }
627
 
716
 
717
+    @Ignore
628
     @Test
718
     @Test
629
     public void test_last_saturday_of_february_2013() {
719
     public void test_last_saturday_of_february_2013() {
630
         DateTime expected = new DateTime(2013, 2, 23, 0, 0);
720
         DateTime expected = new DateTime(2013, 2, 23, 0, 0);
632
         assertThat(meetup.day(SATURDAY, MeetupSchedule.LAST)).isEqualTo(expected);
722
         assertThat(meetup.day(SATURDAY, MeetupSchedule.LAST)).isEqualTo(expected);
633
     }
723
     }
634
 
724
 
725
+    @Ignore
635
     @Test
726
     @Test
636
     public void test_last_sunday_of_march_2013() {
727
     public void test_last_sunday_of_march_2013() {
637
         DateTime expected = new DateTime(2013, 3, 31, 0, 0);
728
         DateTime expected = new DateTime(2013, 3, 31, 0, 0);
639
         assertThat(meetup.day(SUNDAY, MeetupSchedule.LAST)).isEqualTo(expected);
730
         assertThat(meetup.day(SUNDAY, MeetupSchedule.LAST)).isEqualTo(expected);
640
     }
731
     }
641
 
732
 
733
+    @Ignore
642
     @Test
734
     @Test
643
     public void test_last_sunday_of_april_2013() {
735
     public void test_last_sunday_of_april_2013() {
644
         DateTime expected = new DateTime(2013, 4, 28, 0, 0);
736
         DateTime expected = new DateTime(2013, 4, 28, 0, 0);

+ 6
- 0
exercises/nth-prime/build.gradle Ver fichero

10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
   testCompile "org.assertj:assertj-core:3.2.0"
11
   testCompile "org.assertj:assertj-core:3.2.0"
12
 }
12
 }
13
+test {
14
+  testLogging {
15
+    exceptionFormat = 'full'
16
+    events = ["passed", "failed", "skipped"]
17
+  }
18
+}

+ 6
- 0
exercises/nth-prime/src/test/java/PrimeTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import static org.assertj.core.api.Assertions.assertThat;
4
 import static org.assertj.core.api.Assertions.assertThat;
4
 
5
 
5
 public class PrimeTest {
6
 public class PrimeTest {
7
+
6
     @Test
8
     @Test
7
     public void testFirstPrime() {
9
     public void testFirstPrime() {
8
         assertThat(Prime.nth(1)).isEqualTo(2);
10
         assertThat(Prime.nth(1)).isEqualTo(2);
9
     }
11
     }
10
 
12
 
13
+    @Ignore
11
     @Test
14
     @Test
12
     public void testSecondPrime() {
15
     public void testSecondPrime() {
13
         assertThat(Prime.nth(2)).isEqualTo(3);
16
         assertThat(Prime.nth(2)).isEqualTo(3);
14
     }
17
     }
15
 
18
 
19
+    @Ignore
16
     @Test
20
     @Test
17
     public void testSixthPrime() {
21
     public void testSixthPrime() {
18
         assertThat(Prime.nth(6)).isEqualTo(13);
22
         assertThat(Prime.nth(6)).isEqualTo(13);
19
     }
23
     }
20
 
24
 
25
+    @Ignore
21
     @Test
26
     @Test
22
     public void testBigPrime() {
27
     public void testBigPrime() {
23
         assertThat(Prime.nth(10001)).isEqualTo(104743);
28
         assertThat(Prime.nth(10001)).isEqualTo(104743);
24
     }
29
     }
25
 
30
 
31
+    @Ignore
26
     @Test(expected = IllegalArgumentException.class)
32
     @Test(expected = IllegalArgumentException.class)
27
     public void testUndefinedPrime() {
33
     public void testUndefinedPrime() {
28
         Prime.nth(0);
34
         Prime.nth(0);

+ 6
- 0
exercises/nucleotide-count/build.gradle Ver fichero

11
   testCompile "org.assertj:assertj-core:3.2.0"
11
   testCompile "org.assertj:assertj-core:3.2.0"
12
 }
12
 }
13
 
13
 
14
+test {
15
+  testLogging {
16
+    exceptionFormat = 'full'
17
+    events = ["passed", "failed", "skipped"]
18
+  }
19
+}

+ 19
- 9
exercises/nucleotide-count/src/test/java/NucleotideTest.java Ver fichero

2
 import static org.assertj.core.api.Assertions.entry;
2
 import static org.assertj.core.api.Assertions.entry;
3
 
3
 
4
 import org.junit.Test;
4
 import org.junit.Test;
5
+import org.junit.Ignore;
5
 
6
 
6
 public class NucleotideTest {
7
 public class NucleotideTest {
7
-  @Test
8
+
9
+    @Test
8
   public void testEmptyDnaStringHasNoAdenosine() {
10
   public void testEmptyDnaStringHasNoAdenosine() {
9
     DNA dna = new DNA("");
11
     DNA dna = new DNA("");
10
     assertThat(dna.count('A')).isEqualTo(0);
12
     assertThat(dna.count('A')).isEqualTo(0);
11
   }
13
   }
12
 
14
 
13
-  @Test
15
+  @Ignore
16
+    @Test
14
   public void testEmptyDnaStringHasNoNucleotides() {
17
   public void testEmptyDnaStringHasNoNucleotides() {
15
     DNA dna = new DNA("");
18
     DNA dna = new DNA("");
16
     assertThat(dna.nucleotideCounts()).hasSize(4).contains(
19
     assertThat(dna.nucleotideCounts()).hasSize(4).contains(
21
     );
24
     );
22
   }
25
   }
23
 
26
 
24
-  @Test
27
+  @Ignore
28
+    @Test
25
   public void testRepetitiveCytidineGetsCounted() {
29
   public void testRepetitiveCytidineGetsCounted() {
26
     DNA dna = new DNA("CCCCC");
30
     DNA dna = new DNA("CCCCC");
27
     assertThat(dna.count('C')).isEqualTo(5);
31
     assertThat(dna.count('C')).isEqualTo(5);
28
   }
32
   }
29
 
33
 
30
-  @Test
34
+  @Ignore
35
+    @Test
31
   public void testRepetitiveSequenceWithOnlyGuanosine() {
36
   public void testRepetitiveSequenceWithOnlyGuanosine() {
32
     DNA dna = new DNA("GGGGGGGG");
37
     DNA dna = new DNA("GGGGGGGG");
33
     assertThat(dna.nucleotideCounts()).hasSize(4).contains(
38
     assertThat(dna.nucleotideCounts()).hasSize(4).contains(
38
     );
43
     );
39
   }
44
   }
40
 
45
 
41
-  @Test
46
+  @Ignore
47
+    @Test
42
   public void testCountsOnlyThymidine() {
48
   public void testCountsOnlyThymidine() {
43
     DNA dna = new DNA("GGGGGTAACCCGG");
49
     DNA dna = new DNA("GGGGGTAACCCGG");
44
     assertThat(dna.count('T')).isEqualTo(1);
50
     assertThat(dna.count('T')).isEqualTo(1);
45
   }
51
   }
46
 
52
 
47
-  @Test
53
+  @Ignore
54
+    @Test
48
   public void testCountsANucleotideOnlyOnce() {
55
   public void testCountsANucleotideOnlyOnce() {
49
     DNA dna = new DNA("CGATTGGG");
56
     DNA dna = new DNA("CGATTGGG");
50
     dna.count('T');
57
     dna.count('T');
51
     assertThat(dna.count('T')).isEqualTo(2);
58
     assertThat(dna.count('T')).isEqualTo(2);
52
   }
59
   }
53
 
60
 
54
-  @Test
61
+  @Ignore
62
+    @Test
55
   public void testDnaCountsDoNotChangeAfterCountingAdenosine() {
63
   public void testDnaCountsDoNotChangeAfterCountingAdenosine() {
56
     DNA dna = new DNA("GATTACA");
64
     DNA dna = new DNA("GATTACA");
57
     dna.count('A');
65
     dna.count('A');
63
     );
71
     );
64
   }
72
   }
65
 
73
 
66
-  @Test(expected = IllegalArgumentException.class)
74
+  @Ignore
75
+    @Test(expected = IllegalArgumentException.class)
67
   public void testValidatesNucleotides() {
76
   public void testValidatesNucleotides() {
68
     DNA dna = new DNA("GACT");
77
     DNA dna = new DNA("GACT");
69
     dna.count('X');
78
     dna.count('X');
70
   }
79
   }
71
 
80
 
72
-  @Test
81
+  @Ignore
82
+    @Test
73
   public void testCountsAllNucleotides() {
83
   public void testCountsAllNucleotides() {
74
     String s = "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC";
84
     String s = "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC";
75
     DNA dna = new DNA(s);
85
     DNA dna = new DNA(s);

+ 6
- 0
exercises/octal/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 2
- 0
exercises/octal/src/test/java/OctalTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 import org.junit.runner.RunWith;
3
 import org.junit.runner.RunWith;
3
 import org.junit.runners.Parameterized;
4
 import org.junit.runners.Parameterized;
4
 
5
 
38
         this.expectedOutput = expectedOutput;
39
         this.expectedOutput = expectedOutput;
39
     }
40
     }
40
 
41
 
42
+
41
     @Test
43
     @Test
42
     public void test() {
44
     public void test() {
43
         Octal octal = new Octal(input);
45
         Octal octal = new Octal(input);

+ 6
- 0
exercises/pangram/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 6
- 0
exercises/pangram/src/test/java/PangramTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import static org.junit.Assert.assertTrue;
4
 import static org.junit.Assert.assertTrue;
4
 import static org.junit.Assert.assertFalse;
5
 import static org.junit.Assert.assertFalse;
5
 
6
 
6
 public class PangramTest {
7
 public class PangramTest {
7
 
8
 
9
+
8
     @Test
10
     @Test
9
     public void emptySentence() {
11
     public void emptySentence() {
10
         assertFalse(Pangrams.isPangram(""));
12
         assertFalse(Pangrams.isPangram(""));
11
     }
13
     }
12
 
14
 
15
+    @Ignore
13
     @Test
16
     @Test
14
     public void testLowercasePangram() {
17
     public void testLowercasePangram() {
15
         assertTrue(Pangrams.isPangram("the quick brown fox jumps over the lazy dog"));
18
         assertTrue(Pangrams.isPangram("the quick brown fox jumps over the lazy dog"));
16
     }
19
     }
17
 
20
 
21
+    @Ignore
18
     @Test
22
     @Test
19
     public void missingCharacterX() {
23
     public void missingCharacterX() {
20
         assertFalse(Pangrams.isPangram("a quick movement of the enemy will jeopardize five gunboats"));
24
         assertFalse(Pangrams.isPangram("a quick movement of the enemy will jeopardize five gunboats"));
21
     }
25
     }
22
 
26
 
27
+    @Ignore
23
     @Test
28
     @Test
24
     public void mixedCaseAndPunctuation() {
29
     public void mixedCaseAndPunctuation() {
25
         assertTrue(Pangrams.isPangram("\"Five quacking Zephyrs jolt my wax bed.\""));
30
         assertTrue(Pangrams.isPangram("\"Five quacking Zephyrs jolt my wax bed.\""));
26
     }
31
     }
27
 
32
 
33
+    @Ignore
28
     @Test
34
     @Test
29
     public void nonAsciiCharacters() {
35
     public void nonAsciiCharacters() {
30
         assertTrue(Pangrams.isPangram("Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich."));
36
         assertTrue(Pangrams.isPangram("Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich."));

+ 6
- 0
exercises/pascals-triangle/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 7
- 0
exercises/pascals-triangle/src/test/java/PascalsTriangleTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import static org.junit.Assert.assertArrayEquals;
4
 import static org.junit.Assert.assertArrayEquals;
4
 import static org.junit.Assert.assertEquals;
5
 import static org.junit.Assert.assertEquals;
5
 
6
 
6
 public class PascalsTriangleTest {
7
 public class PascalsTriangleTest {
7
 
8
 
9
+
8
     @Test
10
     @Test
9
     public void testTriangleWithFourRows() {
11
     public void testTriangleWithFourRows() {
10
         int[][] expectedOutput = new int[][]{
12
         int[][] expectedOutput = new int[][]{
17
         assertArrayEquals(expectedOutput, PascalsTriangle.computeTriangle(4));
19
         assertArrayEquals(expectedOutput, PascalsTriangle.computeTriangle(4));
18
     }
20
     }
19
 
21
 
22
+    @Ignore
20
     @Test
23
     @Test
21
     public void testTriangleWithSixRows() {
24
     public void testTriangleWithSixRows() {
22
         int[][] expectedOutput = new int[][]{
25
         int[][] expectedOutput = new int[][]{
31
         assertArrayEquals(expectedOutput, PascalsTriangle.computeTriangle(6));
34
         assertArrayEquals(expectedOutput, PascalsTriangle.computeTriangle(6));
32
     }
35
     }
33
 
36
 
37
+    @Ignore
34
     @Test
38
     @Test
35
     public void testExpectEmptyTriangle() {
39
     public void testExpectEmptyTriangle() {
36
         int[][] expectedOutput = new int[][]{
40
         int[][] expectedOutput = new int[][]{
40
         assertArrayEquals(expectedOutput, PascalsTriangle.computeTriangle(0));
44
         assertArrayEquals(expectedOutput, PascalsTriangle.computeTriangle(0));
41
     }
45
     }
42
 
46
 
47
+    @Ignore
43
     @Test
48
     @Test
44
     public void testValidInput() {
49
     public void testValidInput() {
45
         int[][] input = new int[][]{
50
         int[][] input = new int[][]{
53
         assertEquals(true, PascalsTriangle.isTriangle(input));
58
         assertEquals(true, PascalsTriangle.isTriangle(input));
54
     }
59
     }
55
 
60
 
61
+    @Ignore
56
     @Test
62
     @Test
57
     public void testInvalidInput() {
63
     public void testInvalidInput() {
58
         int[][] input = new int[][]{
64
         int[][] input = new int[][]{
65
         assertEquals(false, PascalsTriangle.isTriangle(input));
71
         assertEquals(false, PascalsTriangle.isTriangle(input));
66
     }
72
     }
67
 
73
 
74
+    @Ignore
68
     @Test(expected = IllegalArgumentException.class)
75
     @Test(expected = IllegalArgumentException.class)
69
     public void testValidatesNotNegativeRows() {
76
     public void testValidatesNotNegativeRows() {
70
         PascalsTriangle.computeTriangle(-1);
77
         PascalsTriangle.computeTriangle(-1);

+ 6
- 0
exercises/phone-number/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 9
- 0
exercises/phone-number/src/test/java/PhoneNumberTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import static org.junit.Assert.*;
4
 import static org.junit.Assert.*;
4
 
5
 
5
 public class PhoneNumberTest {
6
 public class PhoneNumberTest {
6
 
7
 
8
+
7
     @Test
9
     @Test
8
     public void cleansNumber() {
10
     public void cleansNumber() {
9
         final String expectedNumber = "1234567890";
11
         final String expectedNumber = "1234567890";
14
         );
16
         );
15
     }
17
     }
16
 
18
 
19
+    @Ignore
17
     @Test
20
     @Test
18
     public void cleansNumberWithDots() {
21
     public void cleansNumberWithDots() {
19
         final String expectedNumber = "1234567890";
22
         final String expectedNumber = "1234567890";
24
         );
27
         );
25
     }
28
     }
26
 
29
 
30
+    @Ignore
27
     @Test
31
     @Test
28
     public void validWhen11DigitsAndFirstIs1() {
32
     public void validWhen11DigitsAndFirstIs1() {
29
         final String expectedNumber = "1234567890";
33
         final String expectedNumber = "1234567890";
34
         );
38
         );
35
     }
39
     }
36
 
40
 
41
+    @Ignore
37
     @Test
42
     @Test
38
     public void invalidWhenOnly11Digits() {
43
     public void invalidWhenOnly11Digits() {
39
         final String expectedNumber = "0000000000";
44
         final String expectedNumber = "0000000000";
44
         );
49
         );
45
     }
50
     }
46
 
51
 
52
+    @Ignore
47
     @Test
53
     @Test
48
     public void invalidWhen9Digits() {
54
     public void invalidWhen9Digits() {
49
         final String expectedNumber = "0000000000";
55
         final String expectedNumber = "0000000000";
54
         );
60
         );
55
     }
61
     }
56
 
62
 
63
+    @Ignore
57
     @Test
64
     @Test
58
     public void areaCode() {
65
     public void areaCode() {
59
         final String expectedAreaCode = "123";
66
         final String expectedAreaCode = "123";
64
         );
71
         );
65
     }
72
     }
66
 
73
 
74
+    @Ignore
67
     @Test
75
     @Test
68
     public void prettyPrint() {
76
     public void prettyPrint() {
69
         final String expectedPrettyNumber = "(123) 456-7890";
77
         final String expectedPrettyNumber = "(123) 456-7890";
74
         );
82
         );
75
     }
83
     }
76
 
84
 
85
+    @Ignore
77
     @Test
86
     @Test
78
     public void prettyPrintWithFullUSPhoneNumber() {
87
     public void prettyPrintWithFullUSPhoneNumber() {
79
         final String expectedPrettyNumber = "(123) 456-7890";
88
         final String expectedPrettyNumber = "(123) 456-7890";

+ 6
- 0
exercises/pig-latin/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 2
- 0
exercises/pig-latin/src/test/java/PigLatinTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 import org.junit.runner.RunWith;
3
 import org.junit.runner.RunWith;
3
 import org.junit.runners.Parameterized;
4
 import org.junit.runners.Parameterized;
4
 
5
 
63
         this.expectedOutput = expectedOutput;
64
         this.expectedOutput = expectedOutput;
64
     }
65
     }
65
 
66
 
67
+
66
     @Test
68
     @Test
67
     public void test() {
69
     public void test() {
68
         assertEquals(expectedOutput, PigLatin.translate(input));
70
         assertEquals(expectedOutput, PigLatin.translate(input));

+ 6
- 0
exercises/prime-factors/build.gradle Ver fichero

10
   testCompile "junit:junit:4.12"
10
   testCompile "junit:junit:4.12"
11
 }
11
 }
12
 
12
 
13
+test {
14
+  testLogging {
15
+    exceptionFormat = 'full'
16
+    events = ["passed", "failed", "skipped"]
17
+  }
18
+}

+ 2
- 0
exercises/prime-factors/src/test/java/PrimeFactorsTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 import org.junit.runner.RunWith;
3
 import org.junit.runner.RunWith;
3
 import org.junit.runners.Parameterized;
4
 import org.junit.runners.Parameterized;
4
 import org.junit.runners.Parameterized.Parameters;
5
 import org.junit.runners.Parameterized.Parameters;
37
         this.expectedOutput = expectedOutput;
38
         this.expectedOutput = expectedOutput;
38
     }
39
     }
39
 
40
 
41
+
40
     @Test
42
     @Test
41
     public void test() {
43
     public void test() {
42
         assertEquals(expectedOutput, PrimeFactors.getForNumber(input));
44
         assertEquals(expectedOutput, PrimeFactors.getForNumber(input));

+ 6
- 0
exercises/raindrops/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 2
- 0
exercises/raindrops/src/test/java/RaindropsTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 import org.junit.runner.RunWith;
3
 import org.junit.runner.RunWith;
3
 import org.junit.runners.Parameterized;
4
 import org.junit.runners.Parameterized;
4
 import org.junit.runners.Parameterized.Parameters;
5
 import org.junit.runners.Parameterized.Parameters;
50
         this.expectedOutput = expectedOutput;
51
         this.expectedOutput = expectedOutput;
51
     }
52
     }
52
 
53
 
54
+
53
     @Test
55
     @Test
54
     public void test() {
56
     public void test() {
55
         assertEquals(expectedOutput, Raindrops.convert(input));
57
         assertEquals(expectedOutput, Raindrops.convert(input));

+ 6
- 0
exercises/rna-transcription/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 7
- 0
exercises/rna-transcription/src/test/java/RnaTranscriptionTest.java Ver fichero

1
 import org.junit.Assert;
1
 import org.junit.Assert;
2
 import org.junit.Test;
2
 import org.junit.Test;
3
+import org.junit.Ignore;
3
 
4
 
4
 public class RnaTranscriptionTest {
5
 public class RnaTranscriptionTest {
5
 
6
 
7
+
6
     @Test
8
     @Test
7
     public void testRnaTranscriptionOfEmptyDnaIsEmptyRna() {
9
     public void testRnaTranscriptionOfEmptyDnaIsEmptyRna() {
8
         Assert.assertEquals("", RnaTranscription.ofDna(""));
10
         Assert.assertEquals("", RnaTranscription.ofDna(""));
9
     }
11
     }
10
 
12
 
13
+    @Ignore
11
     @Test
14
     @Test
12
     public void testRnaTranscriptionOfCytosineIsGuanine() {
15
     public void testRnaTranscriptionOfCytosineIsGuanine() {
13
         Assert.assertEquals("G", RnaTranscription.ofDna("C"));
16
         Assert.assertEquals("G", RnaTranscription.ofDna("C"));
14
     }
17
     }
15
 
18
 
19
+    @Ignore
16
     @Test
20
     @Test
17
     public void testRnaTranscriptionOfGuanineIsCytosine() {
21
     public void testRnaTranscriptionOfGuanineIsCytosine() {
18
         Assert.assertEquals("C", RnaTranscription.ofDna("G"));
22
         Assert.assertEquals("C", RnaTranscription.ofDna("G"));
19
     }
23
     }
20
 
24
 
25
+    @Ignore
21
     @Test
26
     @Test
22
     public void testRnaTranscriptionOfThymineIsAdenine() {
27
     public void testRnaTranscriptionOfThymineIsAdenine() {
23
         Assert.assertEquals("A", RnaTranscription.ofDna("T"));
28
         Assert.assertEquals("A", RnaTranscription.ofDna("T"));
24
     }
29
     }
25
 
30
 
31
+    @Ignore
26
     @Test
32
     @Test
27
     public void testRnaTranscriptionOfAdenineIsUracil() {
33
     public void testRnaTranscriptionOfAdenineIsUracil() {
28
         Assert.assertEquals("U", RnaTranscription.ofDna("A"));
34
         Assert.assertEquals("U", RnaTranscription.ofDna("A"));
29
     }
35
     }
30
 
36
 
37
+    @Ignore
31
     @Test
38
     @Test
32
     public void testRnaTranscription() {
39
     public void testRnaTranscription() {
33
         Assert.assertEquals("UGCACCAGAAUU", RnaTranscription.ofDna("ACGTGGTCTTAA"));
40
         Assert.assertEquals("UGCACCAGAAUU", RnaTranscription.ofDna("ACGTGGTCTTAA"));

+ 6
- 0
exercises/robot-name/build.gradle Ver fichero

10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
 
12
 
13
+test {
14
+  testLogging {
15
+    exceptionFormat = 'full'
16
+    events = ["passed", "failed", "skipped"]
17
+  }
18
+}

+ 4
- 0
exercises/robot-name/src/test/java/RobotTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import static org.hamcrest.CoreMatchers.equalTo;
4
 import static org.hamcrest.CoreMatchers.equalTo;
4
 import static org.hamcrest.core.Is.is;
5
 import static org.hamcrest.core.Is.is;
10
     private static final String EXPECTED_ROBOT_NAME_PATTERN = "[A-Z]{2}\\d{3}";
11
     private static final String EXPECTED_ROBOT_NAME_PATTERN = "[A-Z]{2}\\d{3}";
11
     private final Robot robot = new Robot();
12
     private final Robot robot = new Robot();
12
 
13
 
14
+
13
     @Test
15
     @Test
14
     public void hasName() {
16
     public void hasName() {
15
         assertIsValidName(robot.getName());
17
         assertIsValidName(robot.getName());
16
     }
18
     }
17
 
19
 
20
+    @Ignore
18
     @Test
21
     @Test
19
     public void differentRobotsHaveDifferentNames() {
22
     public void differentRobotsHaveDifferentNames() {
20
         assertThat(robot.getName(), not(equalTo(new Robot().getName())));
23
         assertThat(robot.getName(), not(equalTo(new Robot().getName())));
21
     }
24
     }
22
 
25
 
26
+    @Ignore
23
     @Test
27
     @Test
24
     public void resetName() {
28
     public void resetName() {
25
         final String name = robot.getName();
29
         final String name = robot.getName();

+ 6
- 0
exercises/roman-numerals/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 2
- 0
exercises/roman-numerals/src/test/java/RomanNumeralsTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 import org.junit.runner.RunWith;
3
 import org.junit.runner.RunWith;
3
 import org.junit.runners.Parameterized;
4
 import org.junit.runners.Parameterized;
4
 import org.junit.runners.Parameterized.Parameters;
5
 import org.junit.runners.Parameterized.Parameters;
44
         this.expectedOutput = expectedOutput;
45
         this.expectedOutput = expectedOutput;
45
     }
46
     }
46
 
47
 
48
+
47
     @Test
49
     @Test
48
     public void convertArabicNumberalToRomanNumeral() {
50
     public void convertArabicNumberalToRomanNumeral() {
49
         RomanNumeral romanNumeral = new RomanNumeral(input);
51
         RomanNumeral romanNumeral = new RomanNumeral(input);

+ 6
- 0
exercises/scrabble-score/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 2
- 0
exercises/scrabble-score/src/test/java/ScrabbleScoreTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 import org.junit.runner.RunWith;
3
 import org.junit.runner.RunWith;
3
 import org.junit.runners.Parameterized;
4
 import org.junit.runners.Parameterized;
4
 
5
 
33
         this.expectedOutput = expectedOutput;
34
         this.expectedOutput = expectedOutput;
34
     }
35
     }
35
 
36
 
37
+
36
     @Test
38
     @Test
37
     public void test() {
39
     public void test() {
38
         Scrabble scrabble = new Scrabble(input);
40
         Scrabble scrabble = new Scrabble(input);

+ 6
- 0
exercises/sieve/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 4
- 0
exercises/sieve/src/test/java/SieveTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import java.util.Arrays;
4
 import java.util.Arrays;
4
 import java.util.List;
5
 import java.util.List;
7
 
8
 
8
 public class SieveTest {
9
 public class SieveTest {
9
 
10
 
11
+
10
     @Test
12
     @Test
11
     public void findFirstPrime() {
13
     public void findFirstPrime() {
12
         Sieve sieve = new Sieve(2);
14
         Sieve sieve = new Sieve(2);
15
         assertEquals(expectedOutput, sieve.getPrimes());
17
         assertEquals(expectedOutput, sieve.getPrimes());
16
     }
18
     }
17
 
19
 
20
+    @Ignore
18
     @Test
21
     @Test
19
     public void findPrimesUpTo10() {
22
     public void findPrimesUpTo10() {
20
         Sieve sieve = new Sieve(10);
23
         Sieve sieve = new Sieve(10);
23
         assertEquals(expectedOutput, sieve.getPrimes());
26
         assertEquals(expectedOutput, sieve.getPrimes());
24
     }
27
     }
25
 
28
 
29
+    @Ignore
26
     @Test
30
     @Test
27
     public void findPrimesUpTo1000() {
31
     public void findPrimesUpTo1000() {
28
         Sieve sieve = new Sieve(1000);
32
         Sieve sieve = new Sieve(1000);

+ 6
- 0
exercises/simple-cipher/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 6
- 0
exercises/simple-cipher/src/test/java/IncorrectKeyCipherTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 public class IncorrectKeyCipherTest {
4
 public class IncorrectKeyCipherTest {
4
 
5
 
6
+
5
     @Test(expected = IllegalArgumentException.class)
7
     @Test(expected = IllegalArgumentException.class)
6
     public void cipherThrowsWithAllCapsKey() {
8
     public void cipherThrowsWithAllCapsKey() {
7
         new Cipher("ABCDEF");
9
         new Cipher("ABCDEF");
8
     }
10
     }
9
 
11
 
12
+    @Ignore
10
     @Test(expected = IllegalArgumentException.class)
13
     @Test(expected = IllegalArgumentException.class)
11
     public void cipherThrowsWithAnyCapsKey() {
14
     public void cipherThrowsWithAnyCapsKey() {
12
         new Cipher("abcdEFg");
15
         new Cipher("abcdEFg");
13
     }
16
     }
14
 
17
 
18
+    @Ignore
15
     @Test(expected = IllegalArgumentException.class)
19
     @Test(expected = IllegalArgumentException.class)
16
     public void cipherThrowsWithNumericKey() {
20
     public void cipherThrowsWithNumericKey() {
17
         new Cipher("12345");
21
         new Cipher("12345");
18
     }
22
     }
19
 
23
 
24
+    @Ignore
20
     @Test(expected = IllegalArgumentException.class)
25
     @Test(expected = IllegalArgumentException.class)
21
     public void cipherThrowsWithAnyNumericKey() {
26
     public void cipherThrowsWithAnyNumericKey() {
22
         new Cipher("abcd345ef");
27
         new Cipher("abcd345ef");
23
     }
28
     }
24
 
29
 
30
+    @Ignore
25
     @Test(expected = IllegalArgumentException.class)
31
     @Test(expected = IllegalArgumentException.class)
26
     public void cipherThrowsWithEmptyKey() {
32
     public void cipherThrowsWithEmptyKey() {
27
         new Cipher("");
33
         new Cipher("");

+ 7
- 0
exercises/simple-cipher/src/test/java/RandomKeyCipherTest.java Ver fichero

1
 import org.junit.Before;
1
 import org.junit.Before;
2
 import org.junit.Test;
2
 import org.junit.Test;
3
+import org.junit.Ignore;
3
 
4
 
4
 import static org.junit.Assert.assertEquals;
5
 import static org.junit.Assert.assertEquals;
5
 import static org.junit.Assert.assertTrue;
6
 import static org.junit.Assert.assertTrue;
13
         this.cipher = new Cipher();
14
         this.cipher = new Cipher();
14
     }
15
     }
15
 
16
 
17
+
16
     @Test
18
     @Test
17
     public void cipherKeyIsMadeOfLetters() {
19
     public void cipherKeyIsMadeOfLetters() {
18
         assertTrue(cipher.getKey().matches("[a-z]+"));
20
         assertTrue(cipher.getKey().matches("[a-z]+"));
19
     }
21
     }
20
 
22
 
23
+    @Ignore
21
     @Test
24
     @Test
22
     public void defaultCipherKeyIs100Characters() {
25
     public void defaultCipherKeyIs100Characters() {
23
         assertEquals(100, cipher.getKey().length());
26
         assertEquals(100, cipher.getKey().length());
24
     }
27
     }
25
 
28
 
29
+    @Ignore
26
     @Test
30
     @Test
27
     public void cipherKeysAreRandomlyGenerated() {
31
     public void cipherKeysAreRandomlyGenerated() {
28
         assertTrue(!(new Cipher().getKey().equals(cipher.getKey())));
32
         assertTrue(!(new Cipher().getKey().equals(cipher.getKey())));
32
      * Here we take advantage of the fact that plaintext of "aaa..." doesn't output the key. This is a critical problem
36
      * Here we take advantage of the fact that plaintext of "aaa..." doesn't output the key. This is a critical problem
33
      * with shift ciphers, some characters will always output the key verbatim.
37
      * with shift ciphers, some characters will always output the key verbatim.
34
      */
38
      */
39
+    @Ignore
35
     @Test
40
     @Test
36
     public void cipherCanEncode() {
41
     public void cipherCanEncode() {
37
         String expectedOutput = cipher.getKey().substring(0, 10);
42
         String expectedOutput = cipher.getKey().substring(0, 10);
39
         assertEquals(expectedOutput, cipher.encode("aaaaaaaaaa"));
44
         assertEquals(expectedOutput, cipher.encode("aaaaaaaaaa"));
40
     }
45
     }
41
 
46
 
47
+    @Ignore
42
     @Test
48
     @Test
43
     public void cipherCanDecode() {
49
     public void cipherCanDecode() {
44
         String expectedOutput = "aaaaaaaaaa";
50
         String expectedOutput = "aaaaaaaaaa";
46
         assertEquals(expectedOutput, cipher.decode(cipher.getKey().substring(0, 10)));
52
         assertEquals(expectedOutput, cipher.decode(cipher.getKey().substring(0, 10)));
47
     }
53
     }
48
 
54
 
55
+    @Ignore
49
     @Test
56
     @Test
50
     public void cipherIsReversible() {
57
     public void cipherIsReversible() {
51
         String plainText = "abcdefghij";
58
         String plainText = "abcdefghij";

+ 9
- 0
exercises/simple-cipher/src/test/java/SubstitutionCipherTest.java Ver fichero

1
 import org.junit.Before;
1
 import org.junit.Before;
2
 import org.junit.Test;
2
 import org.junit.Test;
3
+import org.junit.Ignore;
3
 
4
 
4
 import static org.junit.Assert.assertEquals;
5
 import static org.junit.Assert.assertEquals;
5
 
6
 
13
         this.cipher = new Cipher(KEY);
14
         this.cipher = new Cipher(KEY);
14
     }
15
     }
15
 
16
 
17
+
16
     @Test
18
     @Test
17
     public void cipherKeepsTheSubmittedKey() {
19
     public void cipherKeepsTheSubmittedKey() {
18
         assertEquals(KEY, cipher.getKey());
20
         assertEquals(KEY, cipher.getKey());
19
     }
21
     }
20
 
22
 
23
+    @Ignore
21
     @Test
24
     @Test
22
     public void cipherCanEncodeWithGivenKey() {
25
     public void cipherCanEncodeWithGivenKey() {
23
         String expectedOutput = "abcdefghij";
26
         String expectedOutput = "abcdefghij";
25
         assertEquals(expectedOutput, cipher.encode("aaaaaaaaaa"));
28
         assertEquals(expectedOutput, cipher.encode("aaaaaaaaaa"));
26
     }
29
     }
27
 
30
 
31
+    @Ignore
28
     @Test
32
     @Test
29
     public void cipherCanDecodeWithGivenKey() {
33
     public void cipherCanDecodeWithGivenKey() {
30
         String expectedOutput = "aaaaaaaaaa";
34
         String expectedOutput = "aaaaaaaaaa";
32
         assertEquals(expectedOutput, cipher.decode("abcdefghij"));
36
         assertEquals(expectedOutput, cipher.decode("abcdefghij"));
33
     }
37
     }
34
 
38
 
39
+    @Ignore
35
     @Test
40
     @Test
36
     public void cipherIsReversibleGivenKey() {
41
     public void cipherIsReversibleGivenKey() {
37
         String plainText = "abcdefghij";
42
         String plainText = "abcdefghij";
39
         assertEquals(plainText, cipher.decode(cipher.encode("abcdefghij")));
44
         assertEquals(plainText, cipher.decode(cipher.encode("abcdefghij")));
40
     }
45
     }
41
 
46
 
47
+    @Ignore
42
     @Test
48
     @Test
43
     public void cipherCanDoubleShiftEncode() {
49
     public void cipherCanDoubleShiftEncode() {
44
         String plainText = "iamapandabear";
50
         String plainText = "iamapandabear";
47
         assertEquals(expectedOutput, new Cipher(plainText).encode(plainText));
53
         assertEquals(expectedOutput, new Cipher(plainText).encode(plainText));
48
     }
54
     }
49
 
55
 
56
+    @Ignore
50
     @Test
57
     @Test
51
     public void cipherCanWrapEncode() {
58
     public void cipherCanWrapEncode() {
52
         String expectedOutput = "zabcdefghi";
59
         String expectedOutput = "zabcdefghi";
54
         assertEquals(expectedOutput, cipher.encode("zzzzzzzzzz"));
61
         assertEquals(expectedOutput, cipher.encode("zzzzzzzzzz"));
55
     }
62
     }
56
 
63
 
64
+    @Ignore
57
     @Test
65
     @Test
58
     public void cipherCanEncodeMessageThatIsShorterThanTheKey() {
66
     public void cipherCanEncodeMessageThatIsShorterThanTheKey() {
59
         String expectedOutput = "abcde";
67
         String expectedOutput = "abcde";
61
         assertEquals(expectedOutput, cipher.encode("aaaaa"));
69
         assertEquals(expectedOutput, cipher.encode("aaaaa"));
62
     }
70
     }
63
 
71
 
72
+    @Ignore
64
     @Test
73
     @Test
65
     public void cipherCanDecodeMessageThatIsShorterThanTheKey() {
74
     public void cipherCanDecodeMessageThatIsShorterThanTheKey() {
66
         String expectedOutput = "aaaaa";
75
         String expectedOutput = "aaaaa";

+ 6
- 0
exercises/simple-linked-list/build.gradle Ver fichero

10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
   testCompile "org.assertj:assertj-core:3.2.0"
11
   testCompile "org.assertj:assertj-core:3.2.0"
12
 }
12
 }
13
+test {
14
+  testLogging {
15
+    exceptionFormat = 'full'
16
+    events = ["passed", "failed", "skipped"]
17
+  }
18
+}

+ 8
- 0
exercises/simple-linked-list/src/test/java/SimpleLinkedListTest.java Ver fichero

2
 import java.util.NoSuchElementException;
2
 import java.util.NoSuchElementException;
3
 import static org.assertj.core.api.Assertions.assertThat;
3
 import static org.assertj.core.api.Assertions.assertThat;
4
 import org.junit.Test;
4
 import org.junit.Test;
5
+import org.junit.Ignore;
5
 
6
 
6
 public class SimpleLinkedListTest {
7
 public class SimpleLinkedListTest {
7
 
8
 
9
+
8
     @Test
10
     @Test
9
     public void aNewListIsEmpty() {
11
     public void aNewListIsEmpty() {
10
         SimpleLinkedList list = new SimpleLinkedList();
12
         SimpleLinkedList list = new SimpleLinkedList();
11
         assertThat(list.size()).isEqualTo(0);
13
         assertThat(list.size()).isEqualTo(0);
12
     }
14
     }
13
 
15
 
16
+    @Ignore
14
     @Test
17
     @Test
15
     public void canCreateFromArray() {
18
     public void canCreateFromArray() {
16
         Integer[] values = new Integer[]{1, 2, 3};
19
         Integer[] values = new Integer[]{1, 2, 3};
18
         assertThat(list.size()).isEqualTo(3);
21
         assertThat(list.size()).isEqualTo(3);
19
     }
22
     }
20
 
23
 
24
+    @Ignore
21
     @Test(expected = NoSuchElementException.class)
25
     @Test(expected = NoSuchElementException.class)
22
     public void popOnEmptyListWillThrow() {
26
     public void popOnEmptyListWillThrow() {
23
         SimpleLinkedList list = new SimpleLinkedList();
27
         SimpleLinkedList list = new SimpleLinkedList();
24
         list.pop();
28
         list.pop();
25
     }
29
     }
26
 
30
 
31
+    @Ignore
27
     @Test
32
     @Test
28
     public void popReturnsLastAddedElement() {
33
     public void popReturnsLastAddedElement() {
29
         SimpleLinkedList list = new SimpleLinkedList();
34
         SimpleLinkedList list = new SimpleLinkedList();
35
         assertThat(list.size()).isEqualTo(0);
40
         assertThat(list.size()).isEqualTo(0);
36
     }
41
     }
37
 
42
 
43
+    @Ignore
38
     @Test
44
     @Test
39
     public void reverseReversesList() {
45
     public void reverseReversesList() {
40
         SimpleLinkedList list = new SimpleLinkedList();
46
         SimpleLinkedList list = new SimpleLinkedList();
51
         assertThat(list.pop()).isEqualTo(5);
57
         assertThat(list.pop()).isEqualTo(5);
52
     }
58
     }
53
 
59
 
60
+    @Ignore
54
     @Test
61
     @Test
55
     public void canReturnListAsArray() {
62
     public void canReturnListAsArray() {
56
         SimpleLinkedList list = new SimpleLinkedList();
63
         SimpleLinkedList list = new SimpleLinkedList();
63
         assertThat(list.asArray(Integer.class)).containsExactly(expected);
70
         assertThat(list.asArray(Integer.class)).containsExactly(expected);
64
     }
71
     }
65
 
72
 
73
+    @Ignore
66
     @Test
74
     @Test
67
     public void canReturnEmptyListAsEmptyArray() {
75
     public void canReturnEmptyListAsEmptyArray() {
68
         SimpleLinkedList list = new SimpleLinkedList();
76
         SimpleLinkedList list = new SimpleLinkedList();

+ 6
- 0
exercises/space-age/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 10
- 0
exercises/space-age/src/test/java/SpaceAgeTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import static org.junit.Assert.assertEquals;
4
 import static org.junit.Assert.assertEquals;
4
 
5
 
6
 
7
 
7
     private static final double MAXIMUM_DELTA = 1E-02;
8
     private static final double MAXIMUM_DELTA = 1E-02;
8
 
9
 
10
+
9
     @Test
11
     @Test
10
     public void ageInSeconds() {
12
     public void ageInSeconds() {
11
         SpaceAge age = new SpaceAge(1000000);
13
         SpaceAge age = new SpaceAge(1000000);
13
         assertEquals(1000000, age.getSeconds(), MAXIMUM_DELTA);
15
         assertEquals(1000000, age.getSeconds(), MAXIMUM_DELTA);
14
     }
16
     }
15
 
17
 
18
+    @Ignore
16
     @Test
19
     @Test
17
     public void ageOnEarth() {
20
     public void ageOnEarth() {
18
         SpaceAge age = new SpaceAge(1000000000);
21
         SpaceAge age = new SpaceAge(1000000000);
20
         assertEquals(31.69, age.onEarth(), MAXIMUM_DELTA);
23
         assertEquals(31.69, age.onEarth(), MAXIMUM_DELTA);
21
     }
24
     }
22
 
25
 
26
+    @Ignore
23
     @Test
27
     @Test
24
     public void ageOnMercury() {
28
     public void ageOnMercury() {
25
         SpaceAge age = new SpaceAge(2134835688);
29
         SpaceAge age = new SpaceAge(2134835688);
28
         assertEquals(280.88, age.onMercury(), MAXIMUM_DELTA);
32
         assertEquals(280.88, age.onMercury(), MAXIMUM_DELTA);
29
     }
33
     }
30
 
34
 
35
+    @Ignore
31
     @Test
36
     @Test
32
     public void ageOnVenus() {
37
     public void ageOnVenus() {
33
         SpaceAge age = new SpaceAge(189839836);
38
         SpaceAge age = new SpaceAge(189839836);
36
         assertEquals(9.78, age.onVenus(), MAXIMUM_DELTA);
41
         assertEquals(9.78, age.onVenus(), MAXIMUM_DELTA);
37
     }
42
     }
38
 
43
 
44
+    @Ignore
39
     @Test
45
     @Test
40
     public void ageOnMars() {
46
     public void ageOnMars() {
41
         SpaceAge age = new SpaceAge(2329871239L);
47
         SpaceAge age = new SpaceAge(2329871239L);
44
         assertEquals(39.25, age.onMars(), MAXIMUM_DELTA);
50
         assertEquals(39.25, age.onMars(), MAXIMUM_DELTA);
45
     }
51
     }
46
 
52
 
53
+    @Ignore
47
     @Test
54
     @Test
48
     public void ageOnJupiter() {
55
     public void ageOnJupiter() {
49
         SpaceAge age = new SpaceAge(901876382);
56
         SpaceAge age = new SpaceAge(901876382);
52
         assertEquals(2.41, age.onJupiter(), MAXIMUM_DELTA);
59
         assertEquals(2.41, age.onJupiter(), MAXIMUM_DELTA);
53
     }
60
     }
54
 
61
 
62
+    @Ignore
55
     @Test
63
     @Test
56
     public void ageOnSaturn() {
64
     public void ageOnSaturn() {
57
         SpaceAge age = new SpaceAge(3000000000L);
65
         SpaceAge age = new SpaceAge(3000000000L);
60
         assertEquals(3.23, age.onSaturn(), MAXIMUM_DELTA);
68
         assertEquals(3.23, age.onSaturn(), MAXIMUM_DELTA);
61
     }
69
     }
62
 
70
 
71
+    @Ignore
63
     @Test
72
     @Test
64
     public void ageOnUranus() {
73
     public void ageOnUranus() {
65
         SpaceAge age = new SpaceAge(3210123456L);
74
         SpaceAge age = new SpaceAge(3210123456L);
68
         assertEquals(1.21, age.onUranus(), MAXIMUM_DELTA);
77
         assertEquals(1.21, age.onUranus(), MAXIMUM_DELTA);
69
     }
78
     }
70
 
79
 
80
+    @Ignore
71
     @Test
81
     @Test
72
     public void ageOnNeptune() {
82
     public void ageOnNeptune() {
73
         SpaceAge age = new SpaceAge(8210123456L);
83
         SpaceAge age = new SpaceAge(8210123456L);

+ 6
- 0
exercises/strain/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 13
- 0
exercises/strain/src/test/java/StrainTest.java Ver fichero

1
 import org.junit.Assert;
1
 import org.junit.Assert;
2
 import org.junit.Test;
2
 import org.junit.Test;
3
+import org.junit.Ignore;
3
 
4
 
4
 import java.util.Arrays;
5
 import java.util.Arrays;
5
 import java.util.LinkedList;
6
 import java.util.LinkedList;
7
 
8
 
8
 public class StrainTest {
9
 public class StrainTest {
9
 
10
 
11
+
10
     @Test
12
     @Test
11
     public void emptyKeep() {
13
     public void emptyKeep() {
12
         List<Integer> input = new LinkedList<>();
14
         List<Integer> input = new LinkedList<>();
14
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x < 10));
16
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x < 10));
15
     }
17
     }
16
 
18
 
19
+    @Ignore
17
     @Test
20
     @Test
18
     public void keepEverything() {
21
     public void keepEverything() {
19
         List<Integer> input = Arrays.asList(1, 2, 3);
22
         List<Integer> input = Arrays.asList(1, 2, 3);
21
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x < 10));
24
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x < 10));
22
     }
25
     }
23
 
26
 
27
+    @Ignore
24
     @Test
28
     @Test
25
     public void keepFirstAndLast() {
29
     public void keepFirstAndLast() {
26
         List<Integer> input = Arrays.asList(1, 2, 3);
30
         List<Integer> input = Arrays.asList(1, 2, 3);
28
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x % 2 != 0));
32
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x % 2 != 0));
29
     }
33
     }
30
 
34
 
35
+    @Ignore
31
     @Test
36
     @Test
32
     public void keepNeitherFirstNorLast() {
37
     public void keepNeitherFirstNorLast() {
33
         List<Integer> input = Arrays.asList(1, 2, 3, 4, 5);
38
         List<Integer> input = Arrays.asList(1, 2, 3, 4, 5);
35
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x % 2 == 0));
40
         Assert.assertEquals(expectedOutput, Strain.keep(input, x -> x % 2 == 0));
36
     }
41
     }
37
 
42
 
43
+    @Ignore
38
     @Test
44
     @Test
39
     public void KeepStrings() {
45
     public void KeepStrings() {
40
         List<String> words = Arrays
46
         List<String> words = Arrays
44
                 Strain.keep(words, x -> x.startsWith("z")));
50
                 Strain.keep(words, x -> x.startsWith("z")));
45
     }
51
     }
46
 
52
 
53
+    @Ignore
47
     @Test
54
     @Test
48
     public void KeepArrays() {
55
     public void KeepArrays() {
49
         List<List<Integer>> actual = Arrays.asList(
56
         List<List<Integer>> actual = Arrays.asList(
63
                 Strain.keep(actual, col -> col.contains(5)));
70
                 Strain.keep(actual, col -> col.contains(5)));
64
     }
71
     }
65
 
72
 
73
+    @Ignore
66
     @Test
74
     @Test
67
     public void emptyDiscard() {
75
     public void emptyDiscard() {
68
         List<Integer> input = new LinkedList<>();
76
         List<Integer> input = new LinkedList<>();
70
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x < 10));
78
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x < 10));
71
     }
79
     }
72
 
80
 
81
+    @Ignore
73
     @Test
82
     @Test
74
     public void discardNothing() {
83
     public void discardNothing() {
75
         List<Integer> input = Arrays.asList(1, 2, 3);
84
         List<Integer> input = Arrays.asList(1, 2, 3);
77
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x > 10));
86
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x > 10));
78
     }
87
     }
79
 
88
 
89
+    @Ignore
80
     @Test
90
     @Test
81
     public void discardFirstAndLast() {
91
     public void discardFirstAndLast() {
82
         List<Integer> input = Arrays.asList(1, 2, 3);
92
         List<Integer> input = Arrays.asList(1, 2, 3);
85
 
95
 
86
     }
96
     }
87
 
97
 
98
+    @Ignore
88
     @Test
99
     @Test
89
     public void discardNeitherFirstNorLast() {
100
     public void discardNeitherFirstNorLast() {
90
         List<Integer> input = Arrays.asList(1, 2, 3, 4, 5);
101
         List<Integer> input = Arrays.asList(1, 2, 3, 4, 5);
92
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x % 2 == 0));
103
         Assert.assertEquals(expectedOutput, Strain.discard(input, x -> x % 2 == 0));
93
     }
104
     }
94
 
105
 
106
+    @Ignore
95
     @Test
107
     @Test
96
     public void discardStrings() {
108
     public void discardStrings() {
97
         List<String> words = Arrays
109
         List<String> words = Arrays
101
                 Strain.discard(words, x -> x.startsWith("z")));
113
                 Strain.discard(words, x -> x.startsWith("z")));
102
     }
114
     }
103
 
115
 
116
+    @Ignore
104
     @Test
117
     @Test
105
     public void discardArrays() {
118
     public void discardArrays() {
106
         List<List<Integer>> actual = Arrays.asList(
119
         List<List<Integer>> actual = Arrays.asList(

+ 6
- 0
exercises/triangle/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 16
- 0
exercises/triangle/src/test/java/TriangleTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import static org.junit.Assert.assertEquals;
4
 import static org.junit.Assert.assertEquals;
4
 
5
 
5
 public class TriangleTest {
6
 public class TriangleTest {
6
 
7
 
8
+
7
     @Test
9
     @Test
8
     public void equilateralTriangleHaveEqualSides() throws Exception {
10
     public void equilateralTriangleHaveEqualSides() throws Exception {
9
         Triangle triangle = new Triangle(2, 2, 2);
11
         Triangle triangle = new Triangle(2, 2, 2);
11
         assertEquals(TriangleKind.EQUILATERAL, triangle.getKind());
13
         assertEquals(TriangleKind.EQUILATERAL, triangle.getKind());
12
     }
14
     }
13
 
15
 
16
+    @Ignore
14
     @Test
17
     @Test
15
     public void largerEquilateralTrianglesAlsoHaveEqualSides() throws Exception {
18
     public void largerEquilateralTrianglesAlsoHaveEqualSides() throws Exception {
16
         Triangle triangle = new Triangle(10, 10, 10);
19
         Triangle triangle = new Triangle(10, 10, 10);
18
         assertEquals(TriangleKind.EQUILATERAL, triangle.getKind());
21
         assertEquals(TriangleKind.EQUILATERAL, triangle.getKind());
19
     }
22
     }
20
 
23
 
24
+    @Ignore
21
     @Test
25
     @Test
22
     public void isoscelesTrianglesHaveLastTwoSidesEqual() throws Exception {
26
     public void isoscelesTrianglesHaveLastTwoSidesEqual() throws Exception {
23
         Triangle triangle = new Triangle(3, 4, 4);
27
         Triangle triangle = new Triangle(3, 4, 4);
25
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
29
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
26
     }
30
     }
27
 
31
 
32
+    @Ignore
28
     @Test
33
     @Test
29
     public void isoscelesTrianglesHaveFirstAndLastSidesEqual() throws Exception {
34
     public void isoscelesTrianglesHaveFirstAndLastSidesEqual() throws Exception {
30
         Triangle triangle = new Triangle(4, 3, 4);
35
         Triangle triangle = new Triangle(4, 3, 4);
32
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
37
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
33
     }
38
     }
34
 
39
 
40
+    @Ignore
35
     @Test
41
     @Test
36
     public void isoscelesTrianglesHaveTwoFirstSidesEqual() throws Exception {
42
     public void isoscelesTrianglesHaveTwoFirstSidesEqual() throws Exception {
37
         Triangle triangle = new Triangle(4, 4, 3);
43
         Triangle triangle = new Triangle(4, 4, 3);
39
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
45
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
40
     }
46
     }
41
 
47
 
48
+    @Ignore
42
     @Test
49
     @Test
43
     public void isoscelesTrianglesHaveInFactExactlyTwoSidesEqual() throws Exception {
50
     public void isoscelesTrianglesHaveInFactExactlyTwoSidesEqual() throws Exception {
44
         Triangle triangle = new Triangle(10, 10, 2);
51
         Triangle triangle = new Triangle(10, 10, 2);
46
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
53
         assertEquals(TriangleKind.ISOSCELES, triangle.getKind());
47
     }
54
     }
48
 
55
 
56
+    @Ignore
49
     @Test
57
     @Test
50
     public void scaleneTrianglesHaveNoEqualSides() throws Exception {
58
     public void scaleneTrianglesHaveNoEqualSides() throws Exception {
51
         Triangle triangle = new Triangle(3, 4, 5);
59
         Triangle triangle = new Triangle(3, 4, 5);
53
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
61
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
54
     }
62
     }
55
 
63
 
64
+    @Ignore
56
     @Test
65
     @Test
57
     public void scaleneTrianglesHaveNoEqualSidesAtLargerScaleEither() throws Exception {
66
     public void scaleneTrianglesHaveNoEqualSidesAtLargerScaleEither() throws Exception {
58
         Triangle triangle = new Triangle(10, 11, 12);
67
         Triangle triangle = new Triangle(10, 11, 12);
60
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
69
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
61
     }
70
     }
62
 
71
 
72
+    @Ignore
63
     @Test
73
     @Test
64
     public void scaleneTrianglesHaveNoEqualSidesInDescendingOrderEither() throws Exception {
74
     public void scaleneTrianglesHaveNoEqualSidesInDescendingOrderEither() throws Exception {
65
         Triangle triangle = new Triangle(5, 4, 2);
75
         Triangle triangle = new Triangle(5, 4, 2);
67
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
77
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
68
     }
78
     }
69
 
79
 
80
+    @Ignore
70
     @Test
81
     @Test
71
     public void verySmallTrianglesAreLegal() throws Exception {
82
     public void verySmallTrianglesAreLegal() throws Exception {
72
         Triangle triangle = new Triangle(0.4, 0.6, 0.3);
83
         Triangle triangle = new Triangle(0.4, 0.6, 0.3);
74
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
85
         assertEquals(TriangleKind.SCALENE, triangle.getKind());
75
     }
86
     }
76
 
87
 
88
+    @Ignore
77
     @Test(expected = TriangleException.class)
89
     @Test(expected = TriangleException.class)
78
     public void trianglesWithNoSizeAreIllegal() throws Exception {
90
     public void trianglesWithNoSizeAreIllegal() throws Exception {
79
         new Triangle(0, 0, 0);
91
         new Triangle(0, 0, 0);
80
     }
92
     }
81
 
93
 
94
+    @Ignore
82
     @Test(expected = TriangleException.class)
95
     @Test(expected = TriangleException.class)
83
     public void trianglesWithNegativeSidesAreIllegal() throws Exception {
96
     public void trianglesWithNegativeSidesAreIllegal() throws Exception {
84
         new Triangle(3, 4, -5);
97
         new Triangle(3, 4, -5);
85
     }
98
     }
86
 
99
 
100
+    @Ignore
87
     @Test(expected = TriangleException.class)
101
     @Test(expected = TriangleException.class)
88
     public void trianglesViolatingTriangleInequalityAreIllegal() throws Exception {
102
     public void trianglesViolatingTriangleInequalityAreIllegal() throws Exception {
89
         new Triangle(1, 1, 3);
103
         new Triangle(1, 1, 3);
90
     }
104
     }
91
 
105
 
106
+    @Ignore
92
     @Test(expected = TriangleException.class)
107
     @Test(expected = TriangleException.class)
93
     public void trianglesViolatingTriangleInequalityAreIllegal2() throws Exception {
108
     public void trianglesViolatingTriangleInequalityAreIllegal2() throws Exception {
94
         new Triangle(2, 4, 2);
109
         new Triangle(2, 4, 2);
95
     }
110
     }
96
 
111
 
112
+    @Ignore
97
     @Test(expected = TriangleException.class)
113
     @Test(expected = TriangleException.class)
98
     public void trianglesViolatingTriangleInequalityAreIllegal3() throws Exception {
114
     public void trianglesViolatingTriangleInequalityAreIllegal3() throws Exception {
99
         new Triangle(7, 3, 2);
115
         new Triangle(7, 3, 2);

+ 6
- 0
exercises/trinary/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 5
- 0
exercises/trinary/src/test/java/TrinaryTest.java Ver fichero

1
 import static org.junit.Assert.assertEquals;
1
 import static org.junit.Assert.assertEquals;
2
 
2
 
3
 import org.junit.Test;
3
 import org.junit.Test;
4
+import org.junit.Ignore;
4
 
5
 
5
 public class TrinaryTest {
6
 public class TrinaryTest {
7
+
6
     @Test
8
     @Test
7
     public void testNonTrinaryCharacterIsZero() {
9
     public void testNonTrinaryCharacterIsZero() {
8
         assertEquals(0, Trinary.toDecimal("-"));
10
         assertEquals(0, Trinary.toDecimal("-"));
9
     }
11
     }
10
 
12
 
13
+    @Ignore
11
     @Test
14
     @Test
12
     public void testNonTrinaryNumberIsZero() {
15
     public void testNonTrinaryNumberIsZero() {
13
         assertEquals(0, Trinary.toDecimal("3"));
16
         assertEquals(0, Trinary.toDecimal("3"));
14
     }
17
     }
15
 
18
 
19
+    @Ignore
16
     @Test
20
     @Test
17
     public void testTrinaryWithNonTrinaryIsZero() {
21
     public void testTrinaryWithNonTrinaryIsZero() {
18
         assertEquals(0, Trinary.toDecimal("102-12"));
22
         assertEquals(0, Trinary.toDecimal("102-12"));
19
     }
23
     }
20
 
24
 
25
+    @Ignore
21
     @Test
26
     @Test
22
     public void testTrinary() {
27
     public void testTrinary() {
23
         assertEquals(302, Trinary.toDecimal("102012"));
28
         assertEquals(302, Trinary.toDecimal("102012"));

+ 6
- 0
exercises/word-count/build.gradle Ver fichero

9
 dependencies {
9
 dependencies {
10
   testCompile "junit:junit:4.10"
10
   testCompile "junit:junit:4.10"
11
 }
11
 }
12
+test {
13
+  testLogging {
14
+    exceptionFormat = 'full'
15
+    events = ["passed", "failed", "skipped"]
16
+  }
17
+}

+ 7
- 0
exercises/word-count/src/test/java/WordCountTest.java Ver fichero

1
 import org.junit.Test;
1
 import org.junit.Test;
2
+import org.junit.Ignore;
2
 
3
 
3
 import java.lang.Integer;
4
 import java.lang.Integer;
4
 import java.lang.String;
5
 import java.lang.String;
11
 
12
 
12
     private final WordCount wordCount = new WordCount();
13
     private final WordCount wordCount = new WordCount();
13
 
14
 
15
+
14
     @Test
16
     @Test
15
     public void countOneWord() {
17
     public void countOneWord() {
16
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();
18
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();
23
         );
25
         );
24
     }
26
     }
25
 
27
 
28
+    @Ignore
26
     @Test
29
     @Test
27
     public void countOneOfEach() {
30
     public void countOneOfEach() {
28
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();
31
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();
37
         );
40
         );
38
     }
41
     }
39
 
42
 
43
+    @Ignore
40
     @Test
44
     @Test
41
     public void countMultipleOccurences() {
45
     public void countMultipleOccurences() {
42
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();
46
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();
53
         );
57
         );
54
     }
58
     }
55
 
59
 
60
+    @Ignore
56
     @Test
61
     @Test
57
     public void ignorePunctuation() {
62
     public void ignorePunctuation() {
58
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();
63
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();
70
 
75
 
71
     }
76
     }
72
 
77
 
78
+    @Ignore
73
     @Test
79
     @Test
74
     public void includeNumbers() {
80
     public void includeNumbers() {
75
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();
81
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();
84
         );
90
         );
85
     }
91
     }
86
 
92
 
93
+    @Ignore
87
     @Test
94
     @Test
88
     public void normalizeCase() {
95
     public void normalizeCase() {
89
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();
96
         Map<String, Integer> actualWordCount = new HashMap<String, Integer>();

+ 21
- 0
scripts/increase-test-logging.sh Ver fichero

1
+#!/usr/bin/env bash
2
+
3
+LOGGING_CHUNK_FILE=/tmp/test-logging.gradle
4
+
5
+cat <<-EOF > $LOGGING_CHUNK_FILE
6
+test {
7
+  testLogging {
8
+    exceptionFormat = 'full'
9
+    events = ["passed", "failed", "skipped"]
10
+  }
11
+}
12
+EOF
13
+
14
+for file in `find . -name "build.gradle"`; do
15
+  tempfile="/tmp/increase-test-logging.tmp"
16
+
17
+  echo -e "\n\n\n*** $file ******************************"
18
+  cat $file $LOGGING_CHUNK_FILE > "$tempfile"
19
+  mv "$tempfile" "$file"
20
+done
21
+

+ 15
- 0
scripts/insert-ignores.sh Ver fichero

1
+#!/usr/bin/env bash
2
+
3
+for file in `find . -name "*Test.java"`; do
4
+  tempfile="/tmp/insert-ignores.tmp"
5
+
6
+  echo -e "\n\n\n*** $file ******************************"
7
+  cat $file | \
8
+  sed 's/import org.junit.Test;/import org.junit.Test;\
9
+import org.junit.Ignore;/' | \
10
+  sed 's/@Test/@Ignore\
11
+    @Test/' | \
12
+  sed '1,/@Ignore/s/.*@Ignore//' > "$tempfile" \
13
+  && mv "$tempfile" "$file"
14
+done
15
+