Skip to content

queen-attack: add hint to @Ignore annotations #493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions exercises/queen-attack/src/test/java/QueenAttackCalculatorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void testQueensThatDoNotShareRankFileOrDiagonalCannotAttack() {
assertFalse(calculator.canQueensAttackOneAnother());
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testQueensCanAttackOnTheSameRank() {
final QueenAttackCalculator calculator
Expand All @@ -32,7 +32,7 @@ public void testQueensCanAttackOnTheSameRank() {
assertTrue(calculator.canQueensAttackOneAnother());
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testQueensCanAttackOnTheSameFile() {
final QueenAttackCalculator calculator
Expand All @@ -41,7 +41,7 @@ public void testQueensCanAttackOnTheSameFile() {
assertTrue(calculator.canQueensAttackOneAnother());
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testQueensCanAttackOnFirstDiagonal() {
final QueenAttackCalculator calculator
Expand All @@ -50,7 +50,7 @@ public void testQueensCanAttackOnFirstDiagonal() {
assertTrue(calculator.canQueensAttackOneAnother());
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testQueensCanAttackOnSecondDiagonal() {
final QueenAttackCalculator calculator
Expand All @@ -59,7 +59,7 @@ public void testQueensCanAttackOnSecondDiagonal() {
assertTrue(calculator.canQueensAttackOneAnother());
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testQueensCanAttackOnThirdDiagonal() {
final QueenAttackCalculator calculator
Expand All @@ -68,7 +68,7 @@ public void testQueensCanAttackOnThirdDiagonal() {
assertTrue(calculator.canQueensAttackOneAnother());
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testQueensCanAttackOnFourthDiagonal() {
final QueenAttackCalculator calculator
Expand All @@ -77,7 +77,7 @@ public void testQueensCanAttackOnFourthDiagonal() {
assertTrue(calculator.canQueensAttackOneAnother());
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCoordinateWithNegativeRankNotAllowed() {
expectedException.expect(IllegalArgumentException.class);
Expand All @@ -86,7 +86,7 @@ public void testCoordinateWithNegativeRankNotAllowed() {
new BoardCoordinate(-2, 2);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCoordinateWithRankGreaterThan7NotAllowed() {
expectedException.expect(IllegalArgumentException.class);
Expand All @@ -95,7 +95,7 @@ public void testCoordinateWithRankGreaterThan7NotAllowed() {
new BoardCoordinate(8, 4);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCoordinateWithNegativeFileNotAllowed() {
expectedException.expect(IllegalArgumentException.class);
Expand All @@ -104,7 +104,7 @@ public void testCoordinateWithNegativeFileNotAllowed() {
new BoardCoordinate(2, -2);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testCoordinateWithFileGreaterThan7NotAllowed() {
expectedException.expect(IllegalArgumentException.class);
Expand All @@ -113,7 +113,7 @@ public void testCoordinateWithFileGreaterThan7NotAllowed() {
new BoardCoordinate(4, 8);
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testNullCoordinateNotAllowed() {
expectedException.expect(IllegalArgumentException.class);
Expand All @@ -122,7 +122,7 @@ public void testNullCoordinateNotAllowed() {
new QueenAttackCalculator(null, new BoardCoordinate(0, 7));
}

@Ignore
@Ignore("Remove to run test")
@Test
public void testQueensMustNotOccupyTheSameSquare() {
expectedException.expect(IllegalArgumentException.class);
Expand Down