This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final String RESILIENCE4J_INSTANCE_NAME = "example"; | |
@CircuitBreaker(name = RESILIENCE4J_INSTANCE_NAME) | |
public Mono<Response<Boolean>> delay(@PathVariable int delay) { | |
return Mono.just(toOkResponse()) | |
.delayElement(Duration.ofSeconds(delay)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(Parameterized.class) | |
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT) | |
@TestPropertySource(locations = "classpath:application.properties") | |
public class UserControllerIntegrationTest extends BaseIntegrationTest { | |
@ClassRule | |
public static final SpringClassRule SPRING_CLASS_RULE = new SpringClassRule(); | |
@Rule | |
public final SpringMethodRule springMethodRule = new SpringMethodRule(); |
NewerOlder