Przeglądaj źródła

nucleotide-count: add hint to @Ignore annotations

morrme 9 lat temu
rodzic
commit
a79c908bba

+ 8
- 8
exercises/nucleotide-count/src/test/java/NucleotideTest.java Wyświetl plik

19
         assertThat(dna.count('A'), is(0));
19
         assertThat(dna.count('A'), is(0));
20
     }
20
     }
21
 
21
 
22
-    @Ignore
22
+    @Ignore("Remove to run test")
23
     @Test
23
     @Test
24
     public void testEmptyDnaStringHasNoNucleotides() {
24
     public void testEmptyDnaStringHasNoNucleotides() {
25
         DNA dna = new DNA("");
25
         DNA dna = new DNA("");
33
         ));
33
         ));
34
     }
34
     }
35
 
35
 
36
-    @Ignore
36
+    @Ignore("Remove to run test")
37
     @Test
37
     @Test
38
     public void testRepetitiveCytosineGetsCounted() {
38
     public void testRepetitiveCytosineGetsCounted() {
39
         DNA dna = new DNA("CCCCC");
39
         DNA dna = new DNA("CCCCC");
40
         assertThat(dna.count('C'), is(5));
40
         assertThat(dna.count('C'), is(5));
41
     }
41
     }
42
 
42
 
43
-    @Ignore
43
+    @Ignore("Remove to run test")
44
     @Test
44
     @Test
45
     public void testRepetitiveSequenceWithOnlyGuanine() {
45
     public void testRepetitiveSequenceWithOnlyGuanine() {
46
         DNA dna = new DNA("GGGGGGGG");
46
         DNA dna = new DNA("GGGGGGGG");
54
         ));
54
         ));
55
     }
55
     }
56
 
56
 
57
-    @Ignore
57
+    @Ignore("Remove to run test")
58
     @Test
58
     @Test
59
     public void testCountsOnlyThymine() {
59
     public void testCountsOnlyThymine() {
60
         DNA dna = new DNA("GGGGGTAACCCGG");
60
         DNA dna = new DNA("GGGGGTAACCCGG");
61
         assertThat(dna.count('T'), is(1));
61
         assertThat(dna.count('T'), is(1));
62
     }
62
     }
63
 
63
 
64
-    @Ignore
64
+    @Ignore("Remove to run test")
65
     @Test
65
     @Test
66
     public void testCountsANucleotideOnlyOnce() {
66
     public void testCountsANucleotideOnlyOnce() {
67
         DNA dna = new DNA("CGATTGGG");
67
         DNA dna = new DNA("CGATTGGG");
69
         assertThat(dna.count('T'), is(2));
69
         assertThat(dna.count('T'), is(2));
70
     }
70
     }
71
 
71
 
72
-    @Ignore
72
+    @Ignore("Remove to run test")
73
     @Test
73
     @Test
74
     public void testDnaCountsDoNotChangeAfterCountingAdenine() {
74
     public void testDnaCountsDoNotChangeAfterCountingAdenine() {
75
         DNA dna = new DNA("GATTACA");
75
         DNA dna = new DNA("GATTACA");
84
         ));
84
         ));
85
     }
85
     }
86
 
86
 
87
-    @Ignore
87
+    @Ignore("Remove to run test")
88
     @Test
88
     @Test
89
     public void testValidatesNucleotides() {
89
     public void testValidatesNucleotides() {
90
         thrown.expect(IllegalArgumentException.class);
90
         thrown.expect(IllegalArgumentException.class);
92
         dna.count('X');
92
         dna.count('X');
93
     }
93
     }
94
 
94
 
95
-    @Ignore
95
+    @Ignore("Remove to run test")
96
     @Test
96
     @Test
97
     public void testCountsAllNucleotides() {
97
     public void testCountsAllNucleotides() {
98
         String s = "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC";
98
         String s = "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC";