Skip to content

Commit d27ad52

Browse files
committed
Rename DelegateStatement to DelegatingStatement
1 parent b83dc2e commit d27ad52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/junit/internal/runners/statements/FailOnTimeoutTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void sendUpExceptionThrownByStatement() {
8181
@Test
8282
public void throwExceptionIfTheSecondCallToEvaluateNeedsTooMuchTime()
8383
throws Throwable {
84-
DelegateStatement statement = new DelegateStatement();
84+
DelegatingStatement statement = new DelegatingStatement();
8585
FailOnTimeout failOnTimeout = failAfter50Ms(statement);
8686

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

9696
@Test
9797
public void throwTimeoutExceptionOnSecondCallAlthoughFirstCallThrowsException() {
98-
DelegateStatement statement = new DelegateStatement();
98+
DelegatingStatement statement = new DelegatingStatement();
9999
FailOnTimeout failOnTimeout = failAfter50Ms(statement);
100100

101101
statement.delegate = new Fail(new AssertionError("first execution failed"));
@@ -249,7 +249,7 @@ public void run() throws Throwable {
249249
};
250250
}
251251

252-
private static class DelegateStatement extends Statement {
252+
private static class DelegatingStatement extends Statement {
253253
Statement delegate;
254254

255255
@Override

0 commit comments

Comments
 (0)