Пример #1
0
  @Test
  public void whenAnExceptionOccursWhileHandlingAnEvent_thenAnErrorWithTheExceptionIsLogged() {
    disruptorExceptionHandlerUnderTest.handleEventException(
        exceptionMock, Long.MIN_VALUE, eventMock);

    verify(logMock).error(anyString(), same(eventMock), same(exceptionMock));
  }
Пример #2
0
  @Test
  public void whenAnExceptionOccursOnShutdown_thenAnErrorWithTheExceptionIsLogged() {
    disruptorExceptionHandlerUnderTest.handleOnShutdownException(exceptionMock);

    verify(logMock).error(anyString(), same(exceptionMock));
  }