@Test public void delete() { assertEquals(1, envContentCurator.listAll().size()); e.getEnvironmentContent().remove(envContent); // TODO envContentCurator.delete(envContent); assertEquals(0, envContentCurator.listAll().size()); }
@Test public void create() { envContent = envContentCurator.lookupByEnvironmentAndContent(e, c.getId()); assertNotNull(envContent); e = envCurator.find(e.getId()); assertEquals(1, e.getEnvironmentContent().size()); assertEquals(1, envContentCurator.lookupByContent(owner, c.getId()).size()); }