Skip to content

Commit f00dbda

Browse files
committed
DelayableCircuitBreakerTest cleanup
1 parent 7840576 commit f00dbda

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/test/java/net/jodah/failsafe/functional/DelayableCircuitBreakerTest.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package net.jodah.failsafe.functional;
1717

1818
import net.jodah.failsafe.*;
19+
import net.jodah.failsafe.functional.DelayableRetryPolicyTest.UncheckedExpectedException;
1920
import org.testng.annotations.Test;
2021

2122
import java.time.Duration;
@@ -27,12 +28,6 @@
2728

2829
@Test
2930
public class DelayableCircuitBreakerTest {
30-
static class UncheckedExpectedException extends RuntimeException {
31-
}
32-
33-
static class DelayException extends UncheckedExpectedException {
34-
}
35-
3631
@Test(expectedExceptions = RuntimeException.class)
3732
public void testUncheckedExceptionInDelayFunction() {
3833
CircuitBreaker<Object> breaker = new CircuitBreaker<>().withDelay((result, failure, context) -> {

0 commit comments

Comments
 (0)