File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
spring-core/src/test/java/org/springframework/core Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 21
21
22
22
import org .junit .jupiter .api .BeforeAll ;
23
23
import org .junit .jupiter .api .Test ;
24
+ import org .junit .jupiter .api .condition .DisabledForJreRange ;
24
25
import reactor .blockhound .BlockHound ;
26
+ import reactor .core .scheduler .ReactorBlockHoundIntegration ;
25
27
import reactor .core .scheduler .Schedulers ;
26
28
27
29
import org .springframework .tests .sample .objects .TestObject ;
28
30
import org .springframework .util .ConcurrentReferenceHashMap ;
29
31
30
32
import static org .assertj .core .api .Assertions .assertThat ;
31
33
import static org .assertj .core .api .Assertions .assertThatThrownBy ;
34
+ import static org .junit .jupiter .api .condition .JRE .JAVA_14 ;
32
35
33
36
/**
34
37
* Tests to verify the spring-core BlockHound integration rules.
35
38
*
36
39
* @author Rossen Stoyanchev
37
40
* @since 5.2.4
38
41
*/
42
+ @ DisabledForJreRange (min = JAVA_14 )
39
43
public class SpringCoreBlockHoundIntegrationTests {
40
44
41
45
42
46
@ BeforeAll
43
47
static void setUp () {
44
- BlockHound .install ();
48
+ BlockHound .builder ()
49
+ .with (new ReactorBlockHoundIntegration ()) // Reactor non-blocking thread predicate
50
+ .with (new ReactiveAdapterRegistry .SpringCoreBlockHoundIntegration ())
51
+ .install ();
45
52
}
46
53
47
54
You can’t perform that action at this time.
0 commit comments