assertNotNull( new SessionCleaner(null) );
}
public void testCleanSessionsTable() throws Exception {
final TestDatabase db = new TestDatabase();
final SessionCleaner c = new SessionCleaner( db );
final String code = "abcdefghij";
db.update(
" insert into sessions ( id, code, user_id, date_created ) " +
" values ( 1, '" +code+ "', 1, 0 ) "
);
assertRowExists( db, "sessions", "code", code );