Procházet zdrojové kódy

queen-attack: add hint to @Ignore annotations

morrme před 9 roky
rodič
revize
cd87537308

+ 12
- 12
exercises/queen-attack/src/test/java/QueenAttackCalculatorTest.java Zobrazit soubor

23
         assertFalse(calculator.canQueensAttackOneAnother());
23
         assertFalse(calculator.canQueensAttackOneAnother());
24
     }
24
     }
25
 
25
 
26
-    @Ignore
26
+    @Ignore("Remove to run test")
27
     @Test
27
     @Test
28
     public void testQueensCanAttackOnTheSameRank() {
28
     public void testQueensCanAttackOnTheSameRank() {
29
         final QueenAttackCalculator calculator
29
         final QueenAttackCalculator calculator
32
         assertTrue(calculator.canQueensAttackOneAnother());
32
         assertTrue(calculator.canQueensAttackOneAnother());
33
     }
33
     }
34
 
34
 
35
-    @Ignore
35
+    @Ignore("Remove to run test")
36
     @Test
36
     @Test
37
     public void testQueensCanAttackOnTheSameFile() {
37
     public void testQueensCanAttackOnTheSameFile() {
38
         final QueenAttackCalculator calculator
38
         final QueenAttackCalculator calculator
41
         assertTrue(calculator.canQueensAttackOneAnother());
41
         assertTrue(calculator.canQueensAttackOneAnother());
42
     }
42
     }
43
 
43
 
44
-    @Ignore
44
+    @Ignore("Remove to run test")
45
     @Test
45
     @Test
46
     public void testQueensCanAttackOnFirstDiagonal() {
46
     public void testQueensCanAttackOnFirstDiagonal() {
47
         final QueenAttackCalculator calculator
47
         final QueenAttackCalculator calculator
50
         assertTrue(calculator.canQueensAttackOneAnother());
50
         assertTrue(calculator.canQueensAttackOneAnother());
51
     }
51
     }
52
 
52
 
53
-    @Ignore
53
+    @Ignore("Remove to run test")
54
     @Test
54
     @Test
55
     public void testQueensCanAttackOnSecondDiagonal() {
55
     public void testQueensCanAttackOnSecondDiagonal() {
56
         final QueenAttackCalculator calculator
56
         final QueenAttackCalculator calculator
59
         assertTrue(calculator.canQueensAttackOneAnother());
59
         assertTrue(calculator.canQueensAttackOneAnother());
60
     }
60
     }
61
 
61
 
62
-    @Ignore
62
+    @Ignore("Remove to run test")
63
     @Test
63
     @Test
64
     public void testQueensCanAttackOnThirdDiagonal() {
64
     public void testQueensCanAttackOnThirdDiagonal() {
65
         final QueenAttackCalculator calculator
65
         final QueenAttackCalculator calculator
68
         assertTrue(calculator.canQueensAttackOneAnother());
68
         assertTrue(calculator.canQueensAttackOneAnother());
69
     }
69
     }
70
 
70
 
71
-    @Ignore
71
+    @Ignore("Remove to run test")
72
     @Test
72
     @Test
73
     public void testQueensCanAttackOnFourthDiagonal() {
73
     public void testQueensCanAttackOnFourthDiagonal() {
74
         final QueenAttackCalculator calculator
74
         final QueenAttackCalculator calculator
77
         assertTrue(calculator.canQueensAttackOneAnother());
77
         assertTrue(calculator.canQueensAttackOneAnother());
78
     }
78
     }
79
 
79
 
80
-    @Ignore
80
+    @Ignore("Remove to run test")
81
     @Test
81
     @Test
82
     public void testCoordinateWithNegativeRankNotAllowed() {
82
     public void testCoordinateWithNegativeRankNotAllowed() {
83
         expectedException.expect(IllegalArgumentException.class);
83
         expectedException.expect(IllegalArgumentException.class);
86
         new BoardCoordinate(-2, 2);
86
         new BoardCoordinate(-2, 2);
87
     }
87
     }
88
 
88
 
89
-    @Ignore
89
+    @Ignore("Remove to run test")
90
     @Test
90
     @Test
91
     public void testCoordinateWithRankGreaterThan7NotAllowed() {
91
     public void testCoordinateWithRankGreaterThan7NotAllowed() {
92
         expectedException.expect(IllegalArgumentException.class);
92
         expectedException.expect(IllegalArgumentException.class);
95
         new BoardCoordinate(8, 4);
95
         new BoardCoordinate(8, 4);
96
     }
96
     }
97
 
97
 
98
-    @Ignore
98
+    @Ignore("Remove to run test")
99
     @Test
99
     @Test
100
     public void testCoordinateWithNegativeFileNotAllowed() {
100
     public void testCoordinateWithNegativeFileNotAllowed() {
101
         expectedException.expect(IllegalArgumentException.class);
101
         expectedException.expect(IllegalArgumentException.class);
104
         new BoardCoordinate(2, -2);
104
         new BoardCoordinate(2, -2);
105
     }
105
     }
106
 
106
 
107
-    @Ignore
107
+    @Ignore("Remove to run test")
108
     @Test
108
     @Test
109
     public void testCoordinateWithFileGreaterThan7NotAllowed() {
109
     public void testCoordinateWithFileGreaterThan7NotAllowed() {
110
         expectedException.expect(IllegalArgumentException.class);
110
         expectedException.expect(IllegalArgumentException.class);
113
         new BoardCoordinate(4, 8);
113
         new BoardCoordinate(4, 8);
114
     }
114
     }
115
 
115
 
116
-    @Ignore
116
+    @Ignore("Remove to run test")
117
     @Test
117
     @Test
118
     public void testNullCoordinateNotAllowed() {
118
     public void testNullCoordinateNotAllowed() {
119
         expectedException.expect(IllegalArgumentException.class);
119
         expectedException.expect(IllegalArgumentException.class);
122
         new QueenAttackCalculator(null, new BoardCoordinate(0, 7));
122
         new QueenAttackCalculator(null, new BoardCoordinate(0, 7));
123
     }
123
     }
124
 
124
 
125
-    @Ignore
125
+    @Ignore("Remove to run test")
126
     @Test
126
     @Test
127
     public void testQueensMustNotOccupyTheSameSquare() {
127
     public void testQueensMustNotOccupyTheSameSquare() {
128
         expectedException.expect(IllegalArgumentException.class);
128
         expectedException.expect(IllegalArgumentException.class);