SeverityLevelToken implements Token { @Override public void render(final LogEntry logEntry, final StringBuilder builder) { builder.append(logEntry.getLevel()); } SeverityLevelToken(); @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 renderTrace() { SeverityLevelToken token = new SeverityLevelToken(); assertThat(render(token, Level.TRACE)).isEqualTo("TRACE"); }
@Test public void renderDebug() { SeverityLevelToken token = new SeverityLevelToken(); assertThat(render(token, Level.DEBUG)).isEqualTo("DEBUG"); }
@Test public void renderInfo() { SeverityLevelToken token = new SeverityLevelToken(); assertThat(render(token, Level.INFO)).isEqualTo("INFO"); }
@Test public void renderWarning() { SeverityLevelToken token = new SeverityLevelToken(); assertThat(render(token, Level.WARN)).isEqualTo("WARN"); }
@Test public void renderError() { SeverityLevelToken token = new SeverityLevelToken(); assertThat(render(token, Level.ERROR)).isEqualTo("ERROR"); }