Moves blockhound integration to spring cloud package (#1697)

This then does not override reactor integration
This commit is contained in:
Spencer Gibb
2020-04-29 16:36:16 -04:00
committed by GitHub
parent bb94208cfb
commit 4b62b79fd5
5 changed files with 10 additions and 23 deletions

View File

@@ -56,7 +56,7 @@
<spring-cloud-netflix.version>2.2.3.BUILD-SNAPSHOT</spring-cloud-netflix.version>
<spring-cloud-circuitbreaker.version>1.0.3.BUILD-SNAPSHOT</spring-cloud-circuitbreaker.version>
<embedded-redis.version>0.6</embedded-redis.version>
<blockhound.version>1.0.1.RELEASE</blockhound.version>
<blockhound.version>1.0.3.RELEASE</blockhound.version>
</properties>
<dependencyManagement>

View File

@@ -106,21 +106,6 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2019-2019 the original author or authors.
* Copyright 2013-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,9 +14,10 @@
* limitations under the License.
*/
package reactor.blockhound.integration;
package org.springframework.cloud.gateway.test;
import reactor.blockhound.BlockHound;
import reactor.blockhound.integration.BlockHoundIntegration;
/**
* @author Tim Ysewyn

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2019-2019 the original author or authors.
* Copyright 2013-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,9 +14,10 @@
* limitations under the License.
*/
package reactor.blockhound.integration;
package org.springframework.cloud.gateway.test;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;
@@ -25,8 +26,8 @@ import reactor.core.scheduler.Schedulers;
*/
public class CustomBlockHoundIntegrationTest {
// @Test
// ignore fails on java 13
@Test
// @EnabledOnJre(JRE.JAVA_8)
public void shouldThrowErrorForBlockingCallWithCustomBlockHoundIntegration() {
Assertions.assertThrows(RuntimeException.class, () -> Mono.fromCallable(() -> {
Thread.sleep(1);

View File

@@ -1 +1 @@
reactor.blockhound.integration.CustomBlockHoundIntegration
org.springframework.cloud.gateway.test.CustomBlockHoundIntegration