@Before public void beforeAnyTest() throws Exception { manufacturer0 = neo4JManufacturerRepository.save(manufacturer0); manufacturer1 = neo4JManufacturerRepository.save(manufacturer1); manufacturer2 = neo4JManufacturerRepository.save(manufacturer2); manufacturer3 = neo4JManufacturerRepository.save(manufacturer3); }
@Test public void testDeleteById() { Neo4JManufacturer loadedManufacturer = neo4JManufacturerRepository.findOne(manufacturer0.getId()); assertThatManufacturer(loadedManufacturer).exists(); neo4JManufacturerService.delete(manufacturer0.getId()); // neo4JManufacturerRepository.delete(manufacturer0.getId()); // neo4JManufacturerRepository.deleteManufacturer(manufacturer0.getId()); // loadedManufacturer = neo4JManufacturerRepository.findOne(manufacturer0.getId()); // loadedManufacturer = neo4JManufacturerService.findById(manufacturer0.getId()); assertThatManufacturer(loadedManufacturer).doesNotExist(); }