FullClassNameToken implements Token { @Override public void render(final LogEntry logEntry, final StringBuilder builder) { builder.append(logEntry.getClassName()); } FullClassNameToken(); @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 renderClassName() { FullClassNameToken token = new FullClassNameToken(); assertThat(render(token, "my.package.TestClass")).isEqualTo("my.package.TestClass"); }