MinimumSizeToken implements Token { @Override public Collection<LogEntryValue> getRequiredLogEntryValues() { return token.getRequiredLogEntryValues(); } MinimumSizeToken(final Token token, final int size); @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() { MinimumSizeToken token = new MinimumSizeToken(new SeverityLevelToken(), 0); assertThat(token.getRequiredLogEntryValues()).containsOnly(LogEntryValue.LEVEL); }