File tree 2 files changed +4
-5
lines changed
jpa/example/src/test/java/example/springdata/jpa/simple
redis/pubsub/src/test/java/example/springdata/redis
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 25
25
26
26
import org .junit .jupiter .api .BeforeEach ;
27
27
import org .junit .jupiter .api .Test ;
28
- import org .junit .jupiter .api .condition .EnabledOnJre ;
28
+ import org .junit .jupiter .api .condition .EnabledForJreRange ;
29
29
import org .junit .jupiter .api .condition .JRE ;
30
30
31
31
import org .springframework .beans .factory .annotation .Autowired ;
41
41
*/
42
42
@ Transactional
43
43
@ SpringBootTest (properties = "spring.threads.virtual.enabled=true" )
44
- @ EnabledOnJre ( JRE .JAVA_21 )
44
+ @ EnabledForJreRange ( min = JRE .JAVA_21 )
45
45
class VirtualThreadsTests {
46
46
47
47
@ Autowired SimpleUserRepository repository ;
Original file line number Diff line number Diff line change 22
22
import java .util .concurrent .TimeUnit ;
23
23
24
24
import org .junit .jupiter .api .Test ;
25
- import org .junit .jupiter .api .condition .EnabledOnJre ;
25
+ import org .junit .jupiter .api .condition .EnabledForJreRange ;
26
26
import org .junit .jupiter .api .condition .JRE ;
27
-
28
27
import org .springframework .beans .factory .annotation .Autowired ;
29
28
import org .springframework .boot .test .context .SpringBootTest ;
30
29
import org .springframework .core .task .AsyncTaskExecutor ;
39
38
* @author Mark Paluch
40
39
*/
41
40
@ SpringBootTest (properties = "spring.threads.virtual.enabled=true" )
42
- @ EnabledOnJre ( JRE .JAVA_21 )
41
+ @ EnabledForJreRange ( min = JRE .JAVA_21 )
43
42
public class PubSubVirtualThreadsTests {
44
43
45
44
@ Autowired RedisConnectionFactory connectionFactory ;
You can’t perform that action at this time.
0 commit comments