@Test public void constructor_shouldThrowANullPointerException_givenANullMessage() throws Exception { try { new LogicalLogRecord<TestMessages>(Instant.now(), SAMPLE_DIAGNOSTIC_CONTEXT, null, Optional.empty()); fail("expected an exception"); } catch (NullPointerException e) { assertThat(e.getMessage(), containsString("parameter message")); } }
T getMessage() { return message; }
LogicalLogRecord { T getMessage() { return message; } }
LogicalLogRecord { T getMessage() { return message; } LogicalLogRecord(Instant timestamp, DiagnosticContext diagnosticContext, T message, Optional<Throwable> cause, Object... details); }
LogicalLogRecord { T getMessage() { return message; } LogicalLogRecord(Instant timestamp, DiagnosticContext diagnosticContext, T message, Optional<Throwable> cause, Object... details); String format(StackTraceProcessor processor); }
LogicalLogRecord { T getMessage() { return message; } LogicalLogRecord(Instant timestamp, DiagnosticContext diagnosticContext, T message, Optional<Throwable> cause, Object... details); String format(StackTraceProcessor processor);  }