savedTeams = teamRepository.allTeamsOfTenant(tenantId);
assertTrue(savedTeams.isEmpty());
}
public void testSaveAllRemoveAll() throws Exception {
Team team1 = new Team(new TenantId("12345"), "team1");
Team team2 = new Team(new TenantId("12345"), "team2");
Team team3 = new Team(new TenantId("12345"), "team3");
LevelDBUnitOfWork.start(this.database);
teamRepository.saveAll(Arrays.asList(new Team[] { team1, team2, team3 }));
LevelDBUnitOfWork.current().commit();
TenantId tenantId = team1.tenantId();
Collection<Team> savedTeams = teamRepository.allTeamsOfTenant(tenantId);
assertFalse(savedTeams.isEmpty());
assertEquals(3, savedTeams.size());