TableRepositoryImpl extends AbstractCRUDRepository<Table> implements TableRepository { @Override public List<Table> readAll(Identifier id) { BoundStatement bs = new BoundStatement(readAllStmt); bs.bind(id.getDatabaseName()); return (marshalAll(getSession().execute(bs))); } 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 testReadAll() { System.out.println("readAll"); Table testTable = Fixtures.createTestTable(); f.insertTable(testTable); String database = testTable.getDatabaseName(); TableRepository instance = new TableRepositoryImpl(f.getSession()); List<Table> expResult = new ArrayList<>(); expResult.add(testTable); List<Table> result = instance.readAll(new Identifier(database)); assertEquals(expResult, result); }