TableRepositoryImpl extends AbstractCRUDRepository<Table> implements TableRepository { @Override public void delete(Table entity) { Statement s = new SimpleStatement(String.format(DROP_DOC_TABLE_CQL, entity.toDbTable())); getSession().execute(s); BoundStatement bs = new BoundStatement(deleteStmt); bindIdentifier(bs, entity.getId()); getSession().execute(bs); cascadeDelete(entity.getId()); } TableRepositoryImpl(Session session); @Override boolean exists(Identifier identifier); @Override Table read(Identifier identifier); @Override Table create(Table entity); @Override Table update(Table entity); @Override void delete(Table entity); @Override void delete(Identifier id); @Override List<Table> readAll(Identifier id); @Override List<Table> readAll(); @Override long countAllTables(String database); @Override long countTableSize(String database, String tableName);  }
@Test public void testDelete() { System.out.println("delete"); Table testTable = Fixtures.createTestTable(); Identifier identifier = testTable.getId(); f.insertTable(testTable); TableRepository instance = new TableRepositoryImpl(f.getSession()); boolean result = instance.exists(identifier); assertEquals(true, result); instance.delete(identifier); result = instance.exists(identifier); assertEquals(false, result); }