SeverityLevelIntegerToken implements Token { @Override public Collection<LogEntryValue> getRequiredLogEntryValues() { return Collections.singleton(LogEntryValue.LEVEL); } SeverityLevelIntegerToken(); @Override Collection<LogEntryValue> getRequiredLogEntryValues(); @Override void render(final LogEntry logEntry, final StringBuilder builder); @Override void apply(final LogEntry logEntry, final PreparedStatement statement, final int index);  }
@Test public void requiredLogEntryValues() { SeverityLevelIntegerToken token = new SeverityLevelIntegerToken(); assertThat(token.getRequiredLogEntryValues()).containsOnly(LogEntryValue.LEVEL); }