CampusCourseLearnServiceImpl extends LearnBaseService implements CampusCourseLearnService { @Override public List<SapCampusCourseTo> getCoursesWhichCouldBeCreated(Identity identity, SapOlatUser.SapUserType userType) { List<SapCampusCourseTo> courseList = new ArrayList<SapCampusCourseTo>(); Set<Course> sapCampusCourses = campusCourseCoreService.getCampusCoursesWithoutResourceableId(identity, userType); for (Course sapCampusCourse : sapCampusCourses) { courseList.add(new SapCampusCourseTo(sapCampusCourse.getTitle(), sapCampusCourse.getId(), null)); } Collections.sort(courseList); return courseList; }  @Override boolean checkDelegation(Long sapCampusCourseId, Identity creator); @Override CampusCourse createCampusCourseFromTemplate(Long courseResourceableId, Long sapCampusCourseId, Identity creator); @Override CampusCourse continueCampusCourse(Long courseResourceableId, Long sapCampusCourseId, String courseTitle, Identity creator); @Override List<SapCampusCourseTo> getCoursesWhichCouldBeCreated(Identity identity, SapOlatUser.SapUserType userType); @Override List<SapCampusCourseTo> getCoursesWhichCouldBeOpened(Identity identity, SapOlatUser.SapUserType userType); @Override RepositoryEntry getRepositoryEntryFor(Long sapCourseId); @Override void createDelegation(Identity delegator, Identity delegatee); @Override boolean existDelegation(Identity delegator, Identity delegatee); @Override boolean existResourceableId(Long resourceableId); List<Long> getAllCreatedSapCourcesResourceableIds(); List getDelegatees(Identity delegator); void deleteDelegation(Identity delegator, Identity delegatee);  }
@Ignore @Test public void getCoursesWhichCouldBeCreated() { assertTrue(campusCourseLearnServiceImplTestObject.getCoursesWhichCouldBeCreated(identityMock, SapOlatUser.SapUserType.LECTURER).size() == 1); }