@Test public void courseIdNotANumber() throws TmcCoreException { settings.setCurrentCourse( new TmcJsonParser(settings).getCourseFromString(ExampleJson.courseExample)); DownloadExercises de = new DownloadExercises(new ArrayList<Exercise>(), settings); de.checkData(); }
@Test(expected = TmcCoreException.class) public void settingsWithoutCredentials() throws TmcCoreException { CoreTestSettings localSettings = new CoreTestSettings(); localSettings.setCurrentCourse( new TmcJsonParser(settings).getCourseFromString(ExampleJson.courseExample)); DownloadExercises de = new DownloadExercises(new ArrayList<Exercise>(), localSettings); de.checkData(); }
@Test(expected = TmcCoreException.class) public void settingsWithoutCurrentCourse() throws TmcCoreException { DownloadExercises de = new DownloadExercises(new ArrayList<Exercise>(), settings); de.checkData(); }