From d27ad5259228e84c235dac24cd62f974ac0a8e1d Mon Sep 17 00:00:00 2001 From: Stefan Birkner Date: Wed, 20 Jan 2021 07:12:53 +0100 Subject: [PATCH] Rename DelegateStatement to DelegatingStatement --- .../internal/runners/statements/FailOnTimeoutTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/junit/internal/runners/statements/FailOnTimeoutTest.java b/src/test/java/org/junit/internal/runners/statements/FailOnTimeoutTest.java index 19bb7bfc7245..04b329b1fff2 100644 --- a/src/test/java/org/junit/internal/runners/statements/FailOnTimeoutTest.java +++ b/src/test/java/org/junit/internal/runners/statements/FailOnTimeoutTest.java @@ -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(); @@ -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")); @@ -249,7 +249,7 @@ public void run() throws Throwable { }; } - private static class DelegateStatement extends Statement { + private static class DelegatingStatement extends Statement { Statement delegate; @Override