Skip to content

Commit

Permalink
Rename DelegateStatement to DelegatingStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbirkner committed Jan 20, 2021
1 parent b83dc2e commit d27ad52
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void sendUpExceptionThrownByStatement() {
@Test
public void throwExceptionIfTheSecondCallToEvaluateNeedsTooMuchTime()
throws Throwable {
DelegateStatement statement = new DelegateStatement();
DelegatingStatement statement = new DelegatingStatement();
FailOnTimeout failOnTimeout = failAfter50Ms(statement);

statement.delegate = new FastStatement();
Expand All @@ -95,7 +95,7 @@ public void throwExceptionIfTheSecondCallToEvaluateNeedsTooMuchTime()

@Test
public void throwTimeoutExceptionOnSecondCallAlthoughFirstCallThrowsException() {
DelegateStatement statement = new DelegateStatement();
DelegatingStatement statement = new DelegatingStatement();
FailOnTimeout failOnTimeout = failAfter50Ms(statement);

statement.delegate = new Fail(new AssertionError("first execution failed"));
Expand Down Expand Up @@ -249,7 +249,7 @@ public void run() throws Throwable {
};
}

private static class DelegateStatement extends Statement {
private static class DelegatingStatement extends Statement {
Statement delegate;

@Override
Expand Down

0 comments on commit d27ad52

Please sign in to comment.