use of io.github.resilience4j.timelimiter.event.TimeLimiterOnSuccessEvent in project resilience4j by resilience4j.
the class TimeLimiterEventDTOTest method shouldMapTimeLimiterOnSuccessEvent.
@Test
public void shouldMapTimeLimiterOnSuccessEvent() {
TimeLimiterOnSuccessEvent event = new TimeLimiterOnSuccessEvent("name");
TimeLimiterEventDTO timeLimiterEventDTO = TimeLimiterEventDTO.createTimeLimiterEventDTO(event);
assertThat(timeLimiterEventDTO.getTimeLimiterName()).isEqualTo("name");
assertThat(timeLimiterEventDTO.getType()).isEqualTo(TimeLimiterEvent.Type.SUCCESS);
assertThat(timeLimiterEventDTO.getCreationTime()).isNotNull();
}
Aggregations