assertTrue(savedReleases.isEmpty());
}
public void testSaveAllRemoveAll() throws Exception {
Release release1 = new Release(
new TenantId("12345"), new ProductId("p00000"), new ReleaseId("r11111"),
"release1", "My release 1.", new Date(), new Date());
Release release2 = new Release(
new TenantId("12345"), new ProductId("p00000"), new ReleaseId("r11112"),
"release2", "My release 2.", new Date(), new Date());
Release release3 = new Release(
new TenantId("12345"), new ProductId("p00000"), new ReleaseId("r11113"),
"release3", "My release 3.", new Date(), new Date());
LevelDBUnitOfWork.start(this.database);
releaseRepository.saveAll(Arrays.asList(new Release[] { release1, release2, release3 }));
LevelDBUnitOfWork.current().commit();
TenantId tenantId = release1.tenantId();
ProductId productId = release1.productId();
Collection<Release> savedReleases = releaseRepository.allProductReleases(tenantId, productId);
assertFalse(savedReleases.isEmpty());
assertEquals(3, savedReleases.size());