Search in sources :

Example 1 with TimeLimiterOnTimeoutEvent

use of io.github.resilience4j.timelimiter.event.TimeLimiterOnTimeoutEvent in project resilience4j by resilience4j.

the class TimeLimiterEventDTOTest method shouldMapTimeLimiterOnTimeoutEvent.

@Test
public void shouldMapTimeLimiterOnTimeoutEvent() {
    TimeLimiterOnTimeoutEvent event = new TimeLimiterOnTimeoutEvent("name");
    TimeLimiterEventDTO timeLimiterEventDTO = TimeLimiterEventDTO.createTimeLimiterEventDTO(event);
    assertThat(timeLimiterEventDTO.getTimeLimiterName()).isEqualTo("name");
    assertThat(timeLimiterEventDTO.getType()).isEqualTo(TimeLimiterEvent.Type.TIMEOUT);
    assertThat(timeLimiterEventDTO.getCreationTime()).isNotNull();
}
Also used : TimeLimiterEventDTO(io.github.resilience4j.common.timelimiter.monitoring.endpoint.TimeLimiterEventDTO) TimeLimiterOnTimeoutEvent(io.github.resilience4j.timelimiter.event.TimeLimiterOnTimeoutEvent) Test(org.junit.Test)

Aggregations

TimeLimiterEventDTO (io.github.resilience4j.common.timelimiter.monitoring.endpoint.TimeLimiterEventDTO)1 TimeLimiterOnTimeoutEvent (io.github.resilience4j.timelimiter.event.TimeLimiterOnTimeoutEvent)1 Test (org.junit.Test)1