35
35
import org .springframework .scheduling .config .TaskManagementConfigUtils ;
36
36
37
37
import static org .assertj .core .api .Assertions .assertThat ;
38
- import static org .springframework .core .testfixture .TestGroup .PERFORMANCE ;
38
+ import static org .springframework .core .testfixture .TestGroup .LONG_RUNNING ;
39
39
40
40
/**
41
41
* Tests use of @EnableScheduling on @Configuration classes.
@@ -58,7 +58,7 @@ public void tearDown() {
58
58
59
59
60
60
@ Test
61
- @ EnabledForTestGroups (PERFORMANCE )
61
+ @ EnabledForTestGroups (LONG_RUNNING )
62
62
public void withFixedRateTask () throws InterruptedException {
63
63
ctx = new AnnotationConfigApplicationContext (FixedRateTaskConfig .class );
64
64
assertThat (ctx .getBean (ScheduledTaskHolder .class ).getScheduledTasks ().size ()).isEqualTo (2 );
@@ -68,7 +68,7 @@ public void withFixedRateTask() throws InterruptedException {
68
68
}
69
69
70
70
@ Test
71
- @ EnabledForTestGroups (PERFORMANCE )
71
+ @ EnabledForTestGroups (LONG_RUNNING )
72
72
public void withSubclass () throws InterruptedException {
73
73
ctx = new AnnotationConfigApplicationContext (FixedRateTaskConfigSubclass .class );
74
74
assertThat (ctx .getBean (ScheduledTaskHolder .class ).getScheduledTasks ().size ()).isEqualTo (2 );
@@ -78,7 +78,7 @@ public void withSubclass() throws InterruptedException {
78
78
}
79
79
80
80
@ Test
81
- @ EnabledForTestGroups (PERFORMANCE )
81
+ @ EnabledForTestGroups (LONG_RUNNING )
82
82
public void withExplicitScheduler () throws InterruptedException {
83
83
ctx = new AnnotationConfigApplicationContext (ExplicitSchedulerConfig .class );
84
84
assertThat (ctx .getBean (ScheduledTaskHolder .class ).getScheduledTasks ().size ()).isEqualTo (1 );
@@ -97,7 +97,7 @@ public void withExplicitSchedulerAmbiguity_andSchedulingEnabled() {
97
97
}
98
98
99
99
@ Test
100
- @ EnabledForTestGroups (PERFORMANCE )
100
+ @ EnabledForTestGroups (LONG_RUNNING )
101
101
public void withExplicitScheduledTaskRegistrar () throws InterruptedException {
102
102
ctx = new AnnotationConfigApplicationContext (ExplicitScheduledTaskRegistrarConfig .class );
103
103
assertThat (ctx .getBean (ScheduledTaskHolder .class ).getScheduledTasks ().size ()).isEqualTo (1 );
@@ -119,7 +119,7 @@ public void withAmbiguousTaskSchedulers_andSingleTask() {
119
119
}
120
120
121
121
@ Test
122
- @ EnabledForTestGroups (PERFORMANCE )
122
+ @ EnabledForTestGroups (LONG_RUNNING )
123
123
public void withAmbiguousTaskSchedulers_andSingleTask_disambiguatedByScheduledTaskRegistrarBean () throws InterruptedException {
124
124
ctx = new AnnotationConfigApplicationContext (
125
125
SchedulingEnabled_withAmbiguousTaskSchedulers_andSingleTask_disambiguatedByScheduledTaskRegistrar .class );
@@ -129,7 +129,7 @@ public void withAmbiguousTaskSchedulers_andSingleTask_disambiguatedByScheduledTa
129
129
}
130
130
131
131
@ Test
132
- @ EnabledForTestGroups (PERFORMANCE )
132
+ @ EnabledForTestGroups (LONG_RUNNING )
133
133
public void withAmbiguousTaskSchedulers_andSingleTask_disambiguatedBySchedulerNameAttribute () throws InterruptedException {
134
134
ctx = new AnnotationConfigApplicationContext (
135
135
SchedulingEnabled_withAmbiguousTaskSchedulers_andSingleTask_disambiguatedBySchedulerNameAttribute .class );
@@ -139,7 +139,7 @@ public void withAmbiguousTaskSchedulers_andSingleTask_disambiguatedBySchedulerNa
139
139
}
140
140
141
141
@ Test
142
- @ EnabledForTestGroups (PERFORMANCE )
142
+ @ EnabledForTestGroups (LONG_RUNNING )
143
143
public void withTaskAddedVia_configureTasks () throws InterruptedException {
144
144
ctx = new AnnotationConfigApplicationContext (SchedulingEnabled_withTaskAddedVia_configureTasks .class );
145
145
@@ -148,7 +148,7 @@ public void withTaskAddedVia_configureTasks() throws InterruptedException {
148
148
}
149
149
150
150
@ Test
151
- @ EnabledForTestGroups (PERFORMANCE )
151
+ @ EnabledForTestGroups (LONG_RUNNING )
152
152
public void withTriggerTask () throws InterruptedException {
153
153
ctx = new AnnotationConfigApplicationContext (TriggerTaskConfig .class );
154
154
@@ -157,7 +157,7 @@ public void withTriggerTask() throws InterruptedException {
157
157
}
158
158
159
159
@ Test
160
- @ EnabledForTestGroups (PERFORMANCE )
160
+ @ EnabledForTestGroups (LONG_RUNNING )
161
161
public void withInitiallyDelayedFixedRateTask () throws InterruptedException {
162
162
ctx = new AnnotationConfigApplicationContext (FixedRateTaskConfig_withInitialDelay .class );
163
163
0 commit comments