@Test public void constructor_shouldThrowANullPointerException_givenANullTimestamp() throws Exception { try { new LogicalLogRecord<>(null, SAMPLE_DIAGNOSTIC_CONTEXT, TestMessages.Foo, Optional.empty()); fail("expected an exception"); } catch (NullPointerException e) { assertThat(e.getMessage(), containsString("parameter timestamp")); } }
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);  }