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();
}
Aggregations