@Test public void saveUniversityTest() { LOGGER.debug("saveUniversityTest"); University university = new University(); university.setUniversityId("htwkLeipzig"); university.setName("htwk Leipzig"); university.setStreet("dahinten"); university.setHousenumber("12"); university.setCity("Leipzig"); university.setCountry("Germany"); university.setPostcode("04277"); List<String> authorIds = new ArrayList<String>(); authorIds.add("author1"); authorIds.add("author2"); university.setAuthorIds(authorIds); LOGGER.debug("save the university"); Assert.assertEquals(true, universityService.save(university)); }
@Test public void saveUniversity2Test() { LOGGER.debug("saveUniversity2Test()"); University university = new University(); university.setUniversityId("UniDarmstadt"); university.setName("uni Darmstadt"); university.setStreet("andere"); university.setStreet2("Seite"); university.setHousenumber("23"); university.setCity("Darmstadt"); university.setCountry("Germany"); university.setPostcode("63364"); List<String> authorIds = new ArrayList<String>(); authorIds.add("author3"); authorIds.add("author2"); university.setAuthorIds(authorIds); LOGGER.debug("save the university"); Assert.assertEquals(true, universityService.save(university)); }