@@ -15,23 +15,9 @@ public final class QueenAttackCalculatorTest {
1515 @ Rule
1616 public ExpectedException expectedException = ExpectedException .none ();
1717
18- @ Test
19- public void testNoExceptionThrownIfBothQueenPositionsValid () {
20- new QueenAttackCalculator (new BoardCoordinate (2 , 2 ), new BoardCoordinate (0 , 7 ));
21- }
22-
23- @ Ignore
24- @ Test
25- public void testNullInputNotAllowed () {
26- expectedException .expect (IllegalArgumentException .class );
27- expectedException .expectMessage ("You must supply valid board coordinates for both Queens." );
28-
29- new QueenAttackCalculator (null , new BoardCoordinate (0 , 7 ));
30- }
31-
3218 @ Ignore
3319 @ Test
34- public void testNegativeRankNotAllowed () {
20+ public void testCoordinateWithNegativeRankNotAllowed () {
3521 expectedException .expect (IllegalArgumentException .class );
3622 expectedException .expectMessage ("Coordinate must have positive rank." );
3723
@@ -40,7 +26,7 @@ public void testNegativeRankNotAllowed() {
4026
4127 @ Ignore
4228 @ Test
43- public void testRankGreaterThan7NotAllowed () {
29+ public void testCoordinateWithRankGreaterThan7NotAllowed () {
4430 expectedException .expect (IllegalArgumentException .class );
4531 expectedException .expectMessage ("Coordinate must have rank <= 7." );
4632
@@ -49,7 +35,7 @@ public void testRankGreaterThan7NotAllowed() {
4935
5036 @ Ignore
5137 @ Test
52- public void testNegativeFileNotAllowed () {
38+ public void testCoordinateWithNegativeFileNotAllowed () {
5339 expectedException .expect (IllegalArgumentException .class );
5440 expectedException .expectMessage ("Coordinate must have positive file." );
5541
@@ -58,13 +44,22 @@ public void testNegativeFileNotAllowed() {
5844
5945 @ Ignore
6046 @ Test
61- public void testFileGreaterThan7NotAllowed () {
47+ public void testCoordinateWithFileGreaterThan7NotAllowed () {
6248 expectedException .expect (IllegalArgumentException .class );
6349 expectedException .expectMessage ("Coordinate must have file <= 7." );
6450
6551 new BoardCoordinate (4 , 8 );
6652 }
6753
54+ @ Ignore
55+ @ Test
56+ public void testNullCoordinateNotAllowed () {
57+ expectedException .expect (IllegalArgumentException .class );
58+ expectedException .expectMessage ("You must supply valid board coordinates for both Queens." );
59+
60+ new QueenAttackCalculator (null , new BoardCoordinate (0 , 7 ));
61+ }
62+
6863 @ Ignore
6964 @ Test
7065 public void testQueensMustNotOccupyTheSameSquare () {
@@ -74,6 +69,7 @@ public void testQueensMustNotOccupyTheSameSquare() {
7469 new QueenAttackCalculator (new BoardCoordinate (2 , 2 ), new BoardCoordinate (2 , 2 ));
7570 }
7671
72+ @ Ignore
7773 @ Test
7874 public void testQueensThatDoNotShareRankFileOrDiagonalCannotAttack () {
7975 final QueenAttackCalculator calculator
0 commit comments