dodona-edu / judge-java

JUnit-based Java judge for the Dodona learning environment
MIT License
1 stars 1 forks source link

Handle package-private constructor/methods in AssertionStubber #35

Closed thepieterdc closed 5 years ago

thepieterdc commented 5 years ago

Tests have been updated.

The AssertionStubber first tries to load the constructor and methods using getConstructor() and getMethod. If this results in a NoSuchMethodException, it is loaded using the getDeclaredConstructor() and getDeclaredMethod functions. If this succeeds, the method exists but with an incorrect visibility. If this does not succeed, the method is really non existent.

thepieterdc commented 5 years ago

Both issues have been resolved.