Пример #1
0
  @Test
  public void addsContext() {

    // given
    final ILoggingEvent loggingEvent =
        createLoggingEvent().with(createThrowableProxy()).withMdcProperty("context", "someContext");

    // when
    final NotificationVO notification = converter.convertToNotification(loggingEvent);
    final EventVO event = notification.getEvents().get(0);

    // then
    assertThat(event.getContext(), is("someContext"));
  }