1414import fi .helsinki .cs .tmc .langs .abstraction .ValidationResult ;
1515import fi .helsinki .cs .tmc .langs .domain .CompileResult ;
1616import fi .helsinki .cs .tmc .langs .domain .ExerciseDesc ;
17+ import fi .helsinki .cs .tmc .langs .domain .RunResult ;
1718import fi .helsinki .cs .tmc .langs .io .StudentFilePolicy ;
1819import fi .helsinki .cs .tmc .langs .io .sandbox .StudentFileAwareSubmissionProcessor ;
1920import fi .helsinki .cs .tmc .langs .io .sandbox .SubmissionProcessor ;
@@ -139,7 +140,7 @@ protected ClassPath getProjectClassPath(Path path) throws IOException {
139140 }
140141
141142 @ Test
142- public void testRunnerExceptionDuringRunTestsReturnsNull () {
143+ public void testRunnerExceptionDuringRunTestsReturnsStatusTestRunInterrupted () {
143144 AbstractJavaPlugin plugin =
144145 new StubLanguagePlugin (Paths .get ("" )) {
145146 @ Override
@@ -149,11 +150,11 @@ protected TestRunFileAndLogs createRunResultFile(Path path)
149150 }
150151 };
151152
152- assertNull (plugin .runTests (null ));
153+ assertEquals (plugin .runTests (null ). status , RunResult . Status . TESTRUN_INTERRUPTED );
153154 }
154155
155156 @ Test
156- public void testScannerExceptionDuringRunTestsReturnsNull () {
157+ public void testScannerExceptionDuringRunTestsReturnsStatusCompileFailed () {
157158 AbstractJavaPlugin plugin =
158159 new StubLanguagePlugin (Paths .get ("" )) {
159160 @ Override
@@ -163,7 +164,7 @@ protected TestRunFileAndLogs createRunResultFile(Path path)
163164 }
164165 };
165166
166- assertNull (plugin .runTests (null ));
167+ assertEquals (plugin .runTests (null ). status , RunResult . Status . COMPILE_FAILED );
167168 }
168169
169170 @ Test
0 commit comments