@Test public void testGetTimeFormatterWithoutZoneConfiguredGetSystemDefault() { Map<String, String> options = ImmutableMap.of("time_format", "yyyy"); Slf4jAuditLoggerConfig auditConfig = new Slf4jAuditLoggerConfig(options); Optional<DateTimeFormatter> timeFormatter = auditConfig.getTimeFormatter(); assertThat(timeFormatter).map(DateTimeFormatter::getZone).contains(ZoneId.systemDefault()); }
Optional<DateTimeFormatter> getTimeFormatter() { return Optional.ofNullable(timeFormatter); }
Slf4jAuditLoggerConfig { Optional<DateTimeFormatter> getTimeFormatter() { return Optional.ofNullable(timeFormatter); } }
Slf4jAuditLoggerConfig { Optional<DateTimeFormatter> getTimeFormatter() { return Optional.ofNullable(timeFormatter); } Slf4jAuditLoggerConfig(Map<String, String> parameters); }
Slf4jAuditLoggerConfig { Optional<DateTimeFormatter> getTimeFormatter() { return Optional.ofNullable(timeFormatter); } Slf4jAuditLoggerConfig(Map<String, String> parameters);  }
Slf4jAuditLoggerConfig { Optional<DateTimeFormatter> getTimeFormatter() { return Optional.ofNullable(timeFormatter); } Slf4jAuditLoggerConfig(Map<String, String> parameters);   }