Skip to content

Commit

Permalink
Converted tabs to spaces
Browse files Browse the repository at this point in the history
Converted tabs to spaces for newly added code to be in line with
guidelines.
  • Loading branch information
coreyjv committed Nov 12, 2012
1 parent a2ca184 commit bcf2c17
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/main/java/org/junit/rules/ExpectedException.java
Expand Up @@ -119,8 +119,8 @@ public ExpectedException handleAssumptionViolatedExceptions() {
* @return self
*/
public ExpectedException reportMissingExceptionWithMessage(String providedMessage) {
missingExceptionMessage = providedMessage;
return this;
missingExceptionMessage = providedMessage;
return this;
}

public Statement apply(Statement base,
Expand Down Expand Up @@ -193,14 +193,14 @@ public void evaluate() throws Throwable {
}

private void failDueToMissingException() throws AssertionError {
String failureMessage;
if ( isMissingExceptionMessageEmpty() ) {
String expectation = StringDescription.toString(fMatcherBuilder.build());
failureMessage = "Expected test to throw " + expectation;
} else {
failureMessage = missingExceptionMessage;
}
String failureMessage;
if ( isMissingExceptionMessageEmpty() ) {
String expectation = StringDescription.toString(fMatcherBuilder.build());
failureMessage = "Expected test to throw " + expectation;
} else {
failureMessage = missingExceptionMessage;
}

fail(failureMessage);
}
Expand All @@ -223,6 +223,6 @@ private void handleException(Throwable e) throws Throwable {
}

private boolean isMissingExceptionMessageEmpty() {
return missingExceptionMessage == null || missingExceptionMessage.isEmpty();
return missingExceptionMessage == null || missingExceptionMessage.isEmpty();
}
}

0 comments on commit bcf2c17

Please sign in to comment.