SERG-Delft / andy

Andy assesses student's test code. It's used in CSE1110, TU Delft.
MIT License
78 stars 23 forks source link

Not having a new line after the package declaration causes an exception #256

Open martinmladenov opened 1 year ago

martinmladenov commented 1 year ago

If the student's code doesn't have a new line character after the package declaration, an exception is thrown. For example, if there is an import on the same line as the package declaration: package delft; import java.util.List;.

Status: Done
Andy v1.0-6a0e9a7 (2023-06-27T09:24:42+0000)

Oh, we are facing a failure that we cannot recover from.
The failure occurred in RunJUnitTestsStep.
Please, send the message below to the teaching team:
---
java.lang.ClassNotFoundException: delft.ArrayUtilsTests
    at java.base/java.lang.ClassLoader.findClass(ClassLoader.java:716)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:586)
    at nl.tudelft.cse1110.andy.utils.FromBytesClassLoader.loadClass(FromBytesClassLoader.java:32)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:466)
    at nl.tudelft.cse1110.andy.execution.step.RunJUnitTestsStep.execute(RunJUnitTestsStep.java:33)
    at nl.tudelft.cse1110.andy.execution.ExecutionFlow.run(ExecutionFlow.java:31)
    at nl.tudelft.cse1110.andy.Andy.run(Andy.java:12)
    at nl.tudelft.cse1110.andy.AndyOnWebLab.runAndy(AndyOnWebLab.java:35)
    at nl.tudelft.cse1110.andy.AndyOnWebLab.main(AndyOnWebLab.java:27)---