@ -35,7 +35,7 @@ import org.springframework.scheduling.config.ScheduledTaskRegistrar;
@@ -35,7 +35,7 @@ import org.springframework.scheduling.config.ScheduledTaskRegistrar;
import org.springframework.scheduling.config.TaskManagementConfigUtils ;
import static org.assertj.core.api.Assertions.assertThat ;
import static org.springframework.core.testfixture.TestGroup.PERFORMANCE ;
import static org.springframework.core.testfixture.TestGroup.LONG_RUNNING ;
/ * *
* Tests use of @EnableScheduling on @Configuration classes .
@ -58,7 +58,7 @@ public class EnableSchedulingTests {
@@ -58,7 +58,7 @@ public class EnableSchedulingTests {
@Test
@EnabledForTestGroups ( PERFORMANCE )
@EnabledForTestGroups ( LONG_RUNNING )
public void withFixedRateTask ( ) throws InterruptedException {
ctx = new AnnotationConfigApplicationContext ( FixedRateTaskConfig . class ) ;
assertThat ( ctx . getBean ( ScheduledTaskHolder . class ) . getScheduledTasks ( ) . size ( ) ) . isEqualTo ( 2 ) ;
@ -68,7 +68,7 @@ public class EnableSchedulingTests {
@@ -68,7 +68,7 @@ public class EnableSchedulingTests {
}
@Test
@EnabledForTestGroups ( PERFORMANCE )
@EnabledForTestGroups ( LONG_RUNNING )
public void withSubclass ( ) throws InterruptedException {
ctx = new AnnotationConfigApplicationContext ( FixedRateTaskConfigSubclass . class ) ;
assertThat ( ctx . getBean ( ScheduledTaskHolder . class ) . getScheduledTasks ( ) . size ( ) ) . isEqualTo ( 2 ) ;
@ -78,7 +78,7 @@ public class EnableSchedulingTests {
@@ -78,7 +78,7 @@ public class EnableSchedulingTests {
}
@Test
@EnabledForTestGroups ( PERFORMANCE )
@EnabledForTestGroups ( LONG_RUNNING )
public void withExplicitScheduler ( ) throws InterruptedException {
ctx = new AnnotationConfigApplicationContext ( ExplicitSchedulerConfig . class ) ;
assertThat ( ctx . getBean ( ScheduledTaskHolder . class ) . getScheduledTasks ( ) . size ( ) ) . isEqualTo ( 1 ) ;
@ -97,7 +97,7 @@ public class EnableSchedulingTests {
@@ -97,7 +97,7 @@ public class EnableSchedulingTests {
}
@Test
@EnabledForTestGroups ( PERFORMANCE )
@EnabledForTestGroups ( LONG_RUNNING )
public void withExplicitScheduledTaskRegistrar ( ) throws InterruptedException {
ctx = new AnnotationConfigApplicationContext ( ExplicitScheduledTaskRegistrarConfig . class ) ;
assertThat ( ctx . getBean ( ScheduledTaskHolder . class ) . getScheduledTasks ( ) . size ( ) ) . isEqualTo ( 1 ) ;
@ -119,7 +119,7 @@ public class EnableSchedulingTests {
@@ -119,7 +119,7 @@ public class EnableSchedulingTests {
}
@Test
@EnabledForTestGroups ( PERFORMANCE )
@EnabledForTestGroups ( LONG_RUNNING )
public void withAmbiguousTaskSchedulers_andSingleTask_disambiguatedByScheduledTaskRegistrarBean ( ) throws InterruptedException {
ctx = new AnnotationConfigApplicationContext (
SchedulingEnabled_withAmbiguousTaskSchedulers_andSingleTask_disambiguatedByScheduledTaskRegistrar . class ) ;
@ -129,7 +129,7 @@ public class EnableSchedulingTests {
@@ -129,7 +129,7 @@ public class EnableSchedulingTests {
}
@Test
@EnabledForTestGroups ( PERFORMANCE )
@EnabledForTestGroups ( LONG_RUNNING )
public void withAmbiguousTaskSchedulers_andSingleTask_disambiguatedBySchedulerNameAttribute ( ) throws InterruptedException {
ctx = new AnnotationConfigApplicationContext (
SchedulingEnabled_withAmbiguousTaskSchedulers_andSingleTask_disambiguatedBySchedulerNameAttribute . class ) ;
@ -139,7 +139,7 @@ public class EnableSchedulingTests {
@@ -139,7 +139,7 @@ public class EnableSchedulingTests {
}
@Test
@EnabledForTestGroups ( PERFORMANCE )
@EnabledForTestGroups ( LONG_RUNNING )
public void withTaskAddedVia_configureTasks ( ) throws InterruptedException {
ctx = new AnnotationConfigApplicationContext ( SchedulingEnabled_withTaskAddedVia_configureTasks . class ) ;
@ -148,7 +148,7 @@ public class EnableSchedulingTests {
@@ -148,7 +148,7 @@ public class EnableSchedulingTests {
}
@Test
@EnabledForTestGroups ( PERFORMANCE )
@EnabledForTestGroups ( LONG_RUNNING )
public void withTriggerTask ( ) throws InterruptedException {
ctx = new AnnotationConfigApplicationContext ( TriggerTaskConfig . class ) ;
@ -157,7 +157,7 @@ public class EnableSchedulingTests {
@@ -157,7 +157,7 @@ public class EnableSchedulingTests {
}
@Test
@EnabledForTestGroups ( PERFORMANCE )
@EnabledForTestGroups ( LONG_RUNNING )
public void withInitiallyDelayedFixedRateTask ( ) throws InterruptedException {
ctx = new AnnotationConfigApplicationContext ( FixedRateTaskConfig_withInitialDelay . class ) ;