|
|
|
@ -21,8 +21,7 @@ import java.util.concurrent.CompletableFuture;
@@ -21,8 +21,7 @@ import java.util.concurrent.CompletableFuture;
|
|
|
|
|
|
|
|
|
|
import org.junit.jupiter.api.BeforeAll; |
|
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
import org.junit.jupiter.api.condition.DisabledOnJre; |
|
|
|
|
import org.junit.jupiter.api.condition.JRE; |
|
|
|
|
import org.junit.jupiter.api.condition.DisabledForJreRange; |
|
|
|
|
import reactor.blockhound.BlockHound; |
|
|
|
|
import reactor.core.scheduler.ReactorBlockHoundIntegration; |
|
|
|
|
import reactor.core.scheduler.Schedulers; |
|
|
|
@ -31,6 +30,7 @@ import org.springframework.util.ConcurrentReferenceHashMap;
@@ -31,6 +30,7 @@ import org.springframework.util.ConcurrentReferenceHashMap;
|
|
|
|
|
|
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat; |
|
|
|
|
import static org.assertj.core.api.Assertions.assertThatThrownBy; |
|
|
|
|
import static org.junit.jupiter.api.condition.JRE.JAVA_18; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Tests to verify the spring-core BlockHound integration rules. |
|
|
|
@ -47,7 +47,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -47,7 +47,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
|
|
|
|
* @author Sam Brannen |
|
|
|
|
* @since 5.2.4 |
|
|
|
|
*/ |
|
|
|
|
@DisabledOnJre(value= {JRE.JAVA_18, JRE.JAVA_19, JRE.JAVA_20}, disabledReason = "BlockHound is not compatible with Java 18+") |
|
|
|
|
@DisabledForJreRange(min = JAVA_18, disabledReason = "BlockHound is not compatible with Java 18+") |
|
|
|
|
class SpringCoreBlockHoundIntegrationTests { |
|
|
|
|
|
|
|
|
|
@BeforeAll |
|
|
|
|