Преглед изворни кода

Merge pull request #462 from FridaTveit/CryptoAddIgnoreHint

crypto-square: add hint to @Ignore annotations
Stuart Kent пре 9 година
родитељ
комит
ea97e35254
1 измењених фајлова са 14 додато и 14 уклоњено
  1. 14
    14
      exercises/crypto-square/src/test/java/CryptoSquareTest.java

+ 14
- 14
exercises/crypto-square/src/test/java/CryptoSquareTest.java Прегледај датотеку

17
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
17
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
18
     }
18
     }
19
 
19
 
20
-    @Ignore
20
+    @Ignore("Remove to run test")
21
     @Test
21
     @Test
22
     public void lettersAreLowerCasedDuringNormalization() {
22
     public void lettersAreLowerCasedDuringNormalization() {
23
         Crypto crypto = new Crypto("WHOA HEY!");
23
         Crypto crypto = new Crypto("WHOA HEY!");
26
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
26
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
27
     }
27
     }
28
 
28
 
29
-    @Ignore
29
+    @Ignore("Remove to run test")
30
     @Test
30
     @Test
31
     public void numbersAreKeptDuringNormalization() {
31
     public void numbersAreKeptDuringNormalization() {
32
         Crypto crypto = new Crypto("1, 2, 3, GO!");
32
         Crypto crypto = new Crypto("1, 2, 3, GO!");
35
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
35
         assertEquals(expectedOutput, crypto.getNormalizedPlaintext());
36
     }
36
     }
37
 
37
 
38
-    @Ignore
38
+    @Ignore("Remove to run test")
39
     @Test
39
     @Test
40
     public void smallestSquareSizeIs2() {
40
     public void smallestSquareSizeIs2() {
41
         Crypto crypto = new Crypto("1234");
41
         Crypto crypto = new Crypto("1234");
44
         assertEquals(expectedOutput, crypto.getSquareSize());
44
         assertEquals(expectedOutput, crypto.getSquareSize());
45
     }
45
     }
46
 
46
 
47
-    @Ignore
47
+    @Ignore("Remove to run test")
48
     @Test
48
     @Test
49
     public void sizeOfTextWhoseLengthIsPerfectSquareIsItsSquareRoot() {
49
     public void sizeOfTextWhoseLengthIsPerfectSquareIsItsSquareRoot() {
50
         Crypto crypto = new Crypto("123456789");
50
         Crypto crypto = new Crypto("123456789");
53
         assertEquals(expectedOutput, crypto.getSquareSize());
53
         assertEquals(expectedOutput, crypto.getSquareSize());
54
     }
54
     }
55
 
55
 
56
-    @Ignore
56
+    @Ignore("Remove to run test")
57
     @Test
57
     @Test
58
     public void sizeOfTextWhoseLengthIsNoPerfectSquareIsNextBiggestSquareRoot() {
58
     public void sizeOfTextWhoseLengthIsNoPerfectSquareIsNextBiggestSquareRoot() {
59
         Crypto crypto = new Crypto("123456789abc");
59
         Crypto crypto = new Crypto("123456789abc");
62
         assertEquals(expectedOutput, crypto.getSquareSize());
62
         assertEquals(expectedOutput, crypto.getSquareSize());
63
     }
63
     }
64
 
64
 
65
-    @Ignore
65
+    @Ignore("Remove to run test")
66
     @Test
66
     @Test
67
     public void sizeIsDeterminedByNormalizedText() {
67
     public void sizeIsDeterminedByNormalizedText() {
68
         Crypto crypto = new Crypto("Oh hey, this is nuts!");
68
         Crypto crypto = new Crypto("Oh hey, this is nuts!");
71
         assertEquals(expectedOutput, crypto.getSquareSize());
71
         assertEquals(expectedOutput, crypto.getSquareSize());
72
     }
72
     }
73
 
73
 
74
-    @Ignore
74
+    @Ignore("Remove to run test")
75
     @Test
75
     @Test
76
     public void segmentsAreSplitBySquareSize() {
76
     public void segmentsAreSplitBySquareSize() {
77
         Crypto crypto = new Crypto("Never vex thine heart with idle woes");
77
         Crypto crypto = new Crypto("Never vex thine heart with idle woes");
80
         assertEquals(expectedOutput, crypto.getPlaintextSegments());
80
         assertEquals(expectedOutput, crypto.getPlaintextSegments());
81
     }
81
     }
82
 
82
 
83
-    @Ignore
83
+    @Ignore("Remove to run test")
84
     @Test
84
     @Test
85
     public void segmentsAreSplitBySquareSizeUntilTextRunsOut() {
85
     public void segmentsAreSplitBySquareSizeUntilTextRunsOut() {
86
         Crypto crypto = new Crypto("ZOMG! ZOMBIES!!!");
86
         Crypto crypto = new Crypto("ZOMG! ZOMBIES!!!");
89
         assertEquals(expectedOutput, crypto.getPlaintextSegments());
89
         assertEquals(expectedOutput, crypto.getPlaintextSegments());
90
     }
90
     }
91
 
91
 
92
-    @Ignore
92
+    @Ignore("Remove to run test")
93
     @Test
93
     @Test
94
     public void cipherTextCombinesTextByColumn() {
94
     public void cipherTextCombinesTextByColumn() {
95
         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.");
98
         assertEquals(expectedOutput, crypto.getCipherText());
98
         assertEquals(expectedOutput, crypto.getCipherText());
99
     }
99
     }
100
 
100
 
101
-    @Ignore
101
+    @Ignore("Remove to run test")
102
     @Test
102
     @Test
103
     public void cipherTextSkipsCellsWithNoText() {
103
     public void cipherTextSkipsCellsWithNoText() {
104
         Crypto crypto = new Crypto("Time is an illusion. Lunchtime doubly so.");
104
         Crypto crypto = new Crypto("Time is an illusion. Lunchtime doubly so.");
107
         assertEquals(expectedOutput, crypto.getCipherText());
107
         assertEquals(expectedOutput, crypto.getCipherText());
108
     }
108
     }
109
 
109
 
110
-    @Ignore
110
+    @Ignore("Remove to run test")
111
     @Test
111
     @Test
112
     public void normalizedCipherTextIsSplitByHeightOfSquare() {
112
     public void normalizedCipherTextIsSplitByHeightOfSquare() {
113
         Crypto crypto = new Crypto("Vampires are people too!");
113
         Crypto crypto = new Crypto("Vampires are people too!");
116
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
116
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
117
     }
117
     }
118
 
118
 
119
-    @Ignore
119
+    @Ignore("Remove to run test")
120
     @Test
120
     @Test
121
     public void normalizedCipherNotExactlyDivisibleBy5SpillsIntoSmallerSegment() {
121
     public void normalizedCipherNotExactlyDivisibleBy5SpillsIntoSmallerSegment() {
122
         Crypto crypto = new Crypto("Madness, and then illumination.");
122
         Crypto crypto = new Crypto("Madness, and then illumination.");
125
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
125
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
126
     }
126
     }
127
 
127
 
128
-    @Ignore
128
+    @Ignore("Remove to run test")
129
     @Test
129
     @Test
130
     public void normalizedCipherIsSplitIntoSegmentsOfCorrectSize() {
130
     public void normalizedCipherIsSplitIntoSegmentsOfCorrectSize() {
131
         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");
134
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
134
         assertEquals(expectedOutput, crypto.getNormalizedCipherText());
135
     }
135
     }
136
 
136
 
137
-    @Ignore
137
+    @Ignore("Remove to run test")
138
     @Test
138
     @Test
139
     public void normalizedCipherTextIsSplitIntoSegmentsOfCorrectSizeWithPunctuation() {
139
     public void normalizedCipherTextIsSplitIntoSegmentsOfCorrectSizeWithPunctuation() {
140
         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!");