Skip to content

Commit 1a555e8

Browse files
committed
simple-cipher: add hint to @ignore annotations
1 parent 4177a3f commit 1a555e8

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

‎exercises/simple-cipher/src/test/java/SimpleCipherStepOneTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ public void cipherCanEncode() {
2525
assertEquals(cipherText, cipherWithDefaultKey.encode("aaaaaaaaaa"));
2626
}
2727

28-
@Ignore
28+
@Ignore("Remove to run test")
2929
@Test
3030
public void cipherCanDecode() {
3131
String cipherText = "aaaaaaaaaa";
3232
assertEquals(cipherText, cipherWithDefaultKey.decode(cipherWithDefaultKey.getKey().substring(0, 10)));
3333
}
3434

35-
@Ignore
35+
@Ignore("Remove to run test")
3636
@Test
3737
public void cipherIsReversible() {
3838
String plainText = "abcdefghij";

‎exercises/simple-cipher/src/test/java/SimpleCipherStepThreeTest.java‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ public class SimpleCipherStepThreeTest {
1212
@Rule
1313
public ExpectedException expectedException = ExpectedException.none();
1414

15-
@Ignore
15+
@Ignore("Remove to run test")
1616
@Test
1717
public void cipherKeyIsMadeOfLetters() {
1818
assertTrue(new Cipher().getKey().matches("[a-z]+"));
1919
}
2020

21-
@Ignore
21+
@Ignore("Remove to run test")
2222
@Test
2323
public void defaultCipherKeyIs100Characters() {
2424
assertEquals(100, new Cipher().getKey().length());
2525
}
2626

27-
@Ignore
27+
@Ignore("Remove to run test")
2828
@Test
2929
public void cipherKeysAreRandomlyGenerated() {
3030
String newKey = new Cipher().getKey();
@@ -33,28 +33,28 @@ public void cipherKeysAreRandomlyGenerated() {
3333
"both returned key: " + newKey, newKey.equals(new Cipher().getKey()));
3434
}
3535

36-
@Ignore
36+
@Ignore("Remove to run test")
3737
@Test
3838
public void cipherThrowsWithAllCapsKey() {
3939
expectedException.expect(IllegalArgumentException.class);
4040
new Cipher("ABCDEF");
4141
}
4242

43-
@Ignore
43+
@Ignore("Remove to run test")
4444
@Test
4545
public void cipherThrowsWithAnyCapsKey() {
4646
expectedException.expect(IllegalArgumentException.class);
4747
new Cipher("abcdEFg");
4848
}
4949

50-
@Ignore
50+
@Ignore("Remove to run test")
5151
@Test
5252
public void cipherThrowsWithNumericKey() {
5353
expectedException.expect(IllegalArgumentException.class);
5454
new Cipher("12345");
5555
}
5656

57-
@Ignore
57+
@Ignore("Remove to run test")
5858
@Test
5959
public void cipherThrowsWithAnyNumericKey() {
6060
expectedException.expect(IllegalArgumentException.class);

‎exercises/simple-cipher/src/test/java/SimpleCipherStepTwoTest.java‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,62 +21,62 @@ public void setup() {
2121
cipherWithSetKey = new Cipher(key);
2222
}
2323

24-
@Ignore
24+
@Ignore("Remove to run test")
2525
@Test
2626
public void cipherKeepsTheSubmittedKey() {
2727
assertEquals(key, cipherWithSetKey.getKey());
2828
}
2929

30-
@Ignore
30+
@Ignore("Remove to run test")
3131
@Test
3232
public void cipherThrowsWithEmptyKey() {
3333
expectedException.expect(IllegalArgumentException.class);
3434
new Cipher("");
3535
}
3636

37-
@Ignore
37+
@Ignore("Remove to run test")
3838
@Test
3939
public void cipherCanEncodeWithGivenKey() {
4040
String cipherText = "abcdefghij";
4141
assertEquals(cipherText, cipherWithSetKey.encode("aaaaaaaaaa"));
4242
}
4343

44-
@Ignore
44+
@Ignore("Remove to run test")
4545
@Test
4646
public void cipherCanDecodeWithGivenKey() {
4747
String cipherText = "aaaaaaaaaa";
4848
assertEquals(cipherText, cipherWithSetKey.decode("abcdefghij"));
4949
}
5050

51-
@Ignore
51+
@Ignore("Remove to run test")
5252
@Test
5353
public void cipherIsReversibleGivenKey() {
5454
String plainText = "abcdefghij";
5555
assertEquals(plainText, cipherWithSetKey.decode(cipherWithSetKey.encode("abcdefghij")));
5656
}
5757

58-
@Ignore
58+
@Ignore("Remove to run test")
5959
@Test
6060
public void cipherCanWrapEncode() {
6161
String cipherText = "zabcdefghi";
6262
assertEquals(cipherText, cipherWithSetKey.encode("zzzzzzzzzz"));
6363
}
6464

65-
@Ignore
65+
@Ignore("Remove to run test")
6666
@Test
6767
public void cipherCanEncodeMessageThatIsShorterThanTheKey() {
6868
String cipherText = "abcde";
6969
assertEquals(cipherText, cipherWithSetKey.encode("aaaaa"));
7070
}
7171

72-
@Ignore
72+
@Ignore("Remove to run test")
7373
@Test
7474
public void cipherCanDecodeMessageThatIsShorterThanTheKey() {
7575
String cipherText = "aaaaa";
7676
assertEquals(cipherText, cipherWithSetKey.decode("abcde"));
7777
}
7878

79-
@Ignore
79+
@Ignore("Remove to run test")
8080
@Test
8181
public void cipherCanDoubleShiftEncode() {
8282
String plainText = "iamapandabear";

0 commit comments

Comments
 (0)