Kaynağa Gözat

rectangles: add hint to @Ignore annotations

morrme 9 yıl önce
ebeveyn
işleme
2f6bb44e74

+ 11
- 11
exercises/rectangles/src/test/java/RectangleCounterTest.java Dosyayı Görüntüle

20
         assertEquals(0, rectangleCounter.countRectangles(inputGrid));
20
         assertEquals(0, rectangleCounter.countRectangles(inputGrid));
21
     }
21
     }
22
 
22
 
23
-    @Ignore
23
+    @Ignore("Remove to run test")
24
     @Test
24
     @Test
25
     public void testNonTrivialInputWithNoRectangles() {
25
     public void testNonTrivialInputWithNoRectangles() {
26
         String[] inputGrid = new String[]{" "};
26
         String[] inputGrid = new String[]{" "};
28
         assertEquals(0, rectangleCounter.countRectangles(inputGrid));
28
         assertEquals(0, rectangleCounter.countRectangles(inputGrid));
29
     }
29
     }
30
 
30
 
31
-    @Ignore
31
+    @Ignore("Remove to run test")
32
     @Test
32
     @Test
33
     public void testInputWithOneRectangle() {
33
     public void testInputWithOneRectangle() {
34
         String[] inputGrid = new String[]{
34
         String[] inputGrid = new String[]{
40
         assertEquals(1, rectangleCounter.countRectangles(inputGrid));
40
         assertEquals(1, rectangleCounter.countRectangles(inputGrid));
41
     }
41
     }
42
 
42
 
43
-    @Ignore
43
+    @Ignore("Remove to run test")
44
     @Test
44
     @Test
45
     public void testInputWithTwoRectanglesWithoutSharedEdges() {
45
     public void testInputWithTwoRectanglesWithoutSharedEdges() {
46
         String[] inputGrid = new String[]{
46
         String[] inputGrid = new String[]{
54
         assertEquals(2, rectangleCounter.countRectangles(inputGrid));
54
         assertEquals(2, rectangleCounter.countRectangles(inputGrid));
55
     }
55
     }
56
 
56
 
57
-    @Ignore
57
+    @Ignore("Remove to run test")
58
     @Test
58
     @Test
59
     public void testInputWithFiveRectanglesWithSharedEdges() {
59
     public void testInputWithFiveRectanglesWithSharedEdges() {
60
         String[] inputGrid = new String[]{
60
         String[] inputGrid = new String[]{
68
         assertEquals(5, rectangleCounter.countRectangles(inputGrid));
68
         assertEquals(5, rectangleCounter.countRectangles(inputGrid));
69
     }
69
     }
70
 
70
 
71
-    @Ignore
71
+    @Ignore("Remove to run test")
72
     @Test
72
     @Test
73
     public void testThatRectangleOfHeightOneIsCounted() {
73
     public void testThatRectangleOfHeightOneIsCounted() {
74
         String[] inputGrid = new String[]{
74
         String[] inputGrid = new String[]{
79
         assertEquals(1, rectangleCounter.countRectangles(inputGrid));
79
         assertEquals(1, rectangleCounter.countRectangles(inputGrid));
80
     }
80
     }
81
 
81
 
82
-    @Ignore
82
+    @Ignore("Remove to run test")
83
     @Test
83
     @Test
84
     public void testThatRectangleOfWidthOneIsCounted() {
84
     public void testThatRectangleOfWidthOneIsCounted() {
85
         String[] inputGrid = new String[]{
85
         String[] inputGrid = new String[]{
91
         assertEquals(1, rectangleCounter.countRectangles(inputGrid));
91
         assertEquals(1, rectangleCounter.countRectangles(inputGrid));
92
     }
92
     }
93
 
93
 
94
-    @Ignore
94
+    @Ignore("Remove to run test")
95
     @Test
95
     @Test
96
     public void testThatOneByOneSquareIsCounted() {
96
     public void testThatOneByOneSquareIsCounted() {
97
         String[] inputGrid = new String[]{
97
         String[] inputGrid = new String[]{
102
         assertEquals(1, rectangleCounter.countRectangles(inputGrid));
102
         assertEquals(1, rectangleCounter.countRectangles(inputGrid));
103
     }
103
     }
104
 
104
 
105
-    @Ignore
105
+    @Ignore("Remove to run test")
106
     @Test
106
     @Test
107
     public void testThatIncompleteRectanglesAreNotCounted() {
107
     public void testThatIncompleteRectanglesAreNotCounted() {
108
         String[] inputGrid = new String[]{
108
         String[] inputGrid = new String[]{
116
         assertEquals(1, rectangleCounter.countRectangles(inputGrid));
116
         assertEquals(1, rectangleCounter.countRectangles(inputGrid));
117
     }
117
     }
118
 
118
 
119
-    @Ignore
119
+    @Ignore("Remove to run test")
120
     @Test
120
     @Test
121
     public void testThatRectanglesOfDifferentSizesAreAllCounted() {
121
     public void testThatRectanglesOfDifferentSizesAreAllCounted() {
122
         String[] inputGrid = new String[]{
122
         String[] inputGrid = new String[]{
130
         assertEquals(3, rectangleCounter.countRectangles(inputGrid));
130
         assertEquals(3, rectangleCounter.countRectangles(inputGrid));
131
     }
131
     }
132
 
132
 
133
-    @Ignore
133
+    @Ignore("Remove to run test")
134
     @Test
134
     @Test
135
     public void testThatIntersectionsWithoutCornerCharacterDoNotCountAsRectangleCorners() {
135
     public void testThatIntersectionsWithoutCornerCharacterDoNotCountAsRectangleCorners() {
136
         String[] inputGrid = new String[]{
136
         String[] inputGrid = new String[]{
144
         assertEquals(2, rectangleCounter.countRectangles(inputGrid));
144
         assertEquals(2, rectangleCounter.countRectangles(inputGrid));
145
     }
145
     }
146
 
146
 
147
-    @Ignore
147
+    @Ignore("Remove to run test")
148
     @Test
148
     @Test
149
     public void testLargeInputWithManyRectangles() {
149
     public void testLargeInputWithManyRectangles() {
150
         String[] inputGrid = new String[]{
150
         String[] inputGrid = new String[]{