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