Skip to content

Commit 3aeb8cc

Browse files
Colin MullikinColin Mullikin
authored andcommitted
Move "@rule"
Moved the ExpectedException declaration back to the top, where it was before.
1 parent c531aee commit 3aeb8cc

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎exercises/queen-attack/src/test/java/QueenAttackCalculatorTest.java‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
public final class QueenAttackCalculatorTest {
1010

11+
/*
12+
* See https://github.com/junit-team/junit4/wiki/Rules for information on JUnit Rules in general and
13+
* ExpectedExceptions in particular.
14+
*/
15+
@Rule
16+
public ExpectedException expectedException = ExpectedException.none();
17+
1118
@Test
1219
public void testQueensThatDoNotShareRankFileOrDiagonalCannotAttack() {
1320
final QueenAttackCalculator calculator
@@ -70,13 +77,6 @@ public void testQueensCanAttackOnFourthDiagonal() {
7077
assertTrue(calculator.canQueensAttackOneAnother());
7178
}
7279

73-
/*
74-
* See https://github.com/junit-team/junit4/wiki/Rules for information on JUnit Rules in general and
75-
* ExpectedExceptions in particular.
76-
*/
77-
@Rule
78-
public ExpectedException expectedException = ExpectedException.none();
79-
8080
@Ignore
8181
@Test
8282
public void testCoordinateWithNegativeRankNotAllowed() {

0 commit comments

Comments
 (0)