Skip to content

Commit

Permalink
Refine BlockHound support
Browse files Browse the repository at this point in the history
- disable for Java 14/15 for now until BlockHound support
- targeted installation of required integrations only
  • Loading branch information
rstoyanchev committed Feb 25, 2020
1 parent b6f502d commit 2f12351
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,34 @@

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledForJreRange;
import reactor.blockhound.BlockHound;
import reactor.core.scheduler.ReactorBlockHoundIntegration;
import reactor.core.scheduler.Schedulers;

import org.springframework.tests.sample.objects.TestObject;
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_14;

/**
* Tests to verify the spring-core BlockHound integration rules.
*
* @author Rossen Stoyanchev
* @since 5.2.4
*/
@DisabledForJreRange(min = JAVA_14)
public class SpringCoreBlockHoundIntegrationTests {


@BeforeAll
static void setUp() {
BlockHound.install();
BlockHound.builder()
.with(new ReactorBlockHoundIntegration()) // Reactor non-blocking thread predicate
.with(new ReactiveAdapterRegistry.SpringCoreBlockHoundIntegration())
.install();
}


Expand Down

0 comments on commit 2f12351

Please sign in to comment.