@Test public void applyDebug() throws SQLException { SeverityLevelToken token = new SeverityLevelToken(); PreparedStatement statement = mock(PreparedStatement.class); token.apply(createLogEntry(Level.DEBUG), statement, 1); verify(statement).setString(1, "DEBUG"); }
@Override public void apply(final LogEntry logEntry, final PreparedStatement statement, final int index) throws SQLException { statement.setString(index, logEntry.getLevel().toString()); }
SeverityLevelToken implements Token { @Override public void apply(final LogEntry logEntry, final PreparedStatement statement, final int index) throws SQLException { statement.setString(index, logEntry.getLevel().toString()); } }
SeverityLevelToken implements Token { @Override public void apply(final LogEntry logEntry, final PreparedStatement statement, final int index) throws SQLException { statement.setString(index, logEntry.getLevel().toString()); } SeverityLevelToken(); }
SeverityLevelToken implements Token { @Override public void apply(final LogEntry logEntry, final PreparedStatement statement, final int index) throws SQLException { statement.setString(index, logEntry.getLevel().toString()); } 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); }
SeverityLevelToken implements Token { @Override public void apply(final LogEntry logEntry, final PreparedStatement statement, final int index) throws SQLException { statement.setString(index, logEntry.getLevel().toString()); } 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);  }