### Question:
LogRepositoryUpdateJdbc implements LogRepositoryUpdate { @Override public void clear() { try (Statement statement = connectionUpdate.createStatement()) { statement.execute("truncate table batched_statement_log"); statement.execute("truncate table statement_log"); } catch (final SQLException e) { throw new RuntimeException(e); } lastLostMessageTime = null; lastModificationTime = System.currentTimeMillis(); } LogRepositoryUpdateJdbc(final String name); @Override void dispose(); @Override synchronized void addStatementLog(final StatementLog log); @Override synchronized void addStatementFullyExecutedLog(final Collection<StatementFullyExecutedLog> logs); @Override synchronized void updateLogAfterExecution(final StatementExecutedLog log); @Override synchronized void updateLogWithResultSetLog(final ResultSetLog log); @Override synchronized void addBatchedPreparedStatementsLog(final BatchedPreparedStatementsLog log); @Override synchronized void addBatchedNonPreparedStatementsLog(final BatchedNonPreparedStatementsLog log); @Override synchronized void addConnection(final ConnectionInfo connectionInfo); @Override synchronized void addTxCompletionLog(final TxCompleteLog log); @Override void clear(); @Override void deleteStatementLog(final long... logIds); void deleteOldRowsIfTooMany(); @Override synchronized long getLastModificationTime(); @Override void setLastLostMessageTime(@Nullable final Long timestamp); @Override @Nullable Long getLastLostMessageTime(); static final int SCHEMA_VERSION; }### Answer:
@Test public void testClear() { insert1Log(); assertEquals(1, countRowsInTable("statement_log")); repositoryUpdate.clear(); assertEquals(0, countRowsInTable("statement_log")); }