public Neo4JManufacturerRepositoryTest() { manufacturer0 = new Neo4JManufacturer(); manufacturer0.setName("Siemens"); manufacturer1 = new Neo4JManufacturer(); manufacturer1.setName("GE"); manufacturer2 = new Neo4JManufacturer(); manufacturer2.setName("Bosh"); manufacturer3 = new Neo4JManufacturer(); manufacturer3.setName("Alcatel"); }
@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(); }