diff --git a/spring-context/src/test/java/org/springframework/scheduling/annotation/EnableSchedulingTests.java b/spring-context/src/test/java/org/springframework/scheduling/annotation/EnableSchedulingTests.java index 2d553ee7fa..c3a46c6e73 100644 --- a/spring-context/src/test/java/org/springframework/scheduling/annotation/EnableSchedulingTests.java +++ b/spring-context/src/test/java/org/springframework/scheduling/annotation/EnableSchedulingTests.java @@ -20,9 +20,7 @@ import java.util.Date; import java.util.concurrent.atomic.AtomicInteger; import org.junit.After; -import org.junit.Rule; import org.junit.Test; -import org.junit.rules.ExpectedException; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; @@ -48,9 +46,6 @@ import static org.junit.Assert.*; */ public class EnableSchedulingTests { - @Rule - public final ExpectedException exception = ExpectedException.none(); - private AnnotationConfigApplicationContext ctx;