Skip to content

Instantly share code, notes, and snippets.

View nantaaditya's full-sized avatar
🥸
No Need to Know.

pramuditya ananta nur nantaaditya

🥸
No Need to Know.
View GitHub Profile
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));
}
@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();