Skip to content

Commit

Permalink
Changed exception message method name
Browse files Browse the repository at this point in the history
Changed method name from setMissingExceptionMessage to
reportMissingExceptionWithMessage to be more consistent with the
existing API.
  • Loading branch information
coreyjv committed Nov 12, 2012
1 parent 3efad73 commit a2ca184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/junit/rules/ExpectedException.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public ExpectedException handleAssumptionViolatedExceptions() {
* @param providedMessage exception detail message
* @return self
*/
public ExpectedException setMissingExceptionMessage(String providedMessage) {
public ExpectedException reportMissingExceptionWithMessage(String providedMessage) {
missingExceptionMessage = providedMessage;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public static class CustomMessageWithoutExpectedException {
@Test
public void noThrow() {
thrown.expect(IllegalArgumentException.class);
thrown.setMissingExceptionMessage(ARBITRARY_MESSAGE);
thrown.reportMissingExceptionWithMessage(ARBITRARY_MESSAGE);
}
}
}

0 comments on commit a2ca184

Please sign in to comment.