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.
Tests have been updated.
The
AssertionStubber
first tries to load the constructor and methods usinggetConstructor()
andgetMethod
. If this results in aNoSuchMethodException
, it is loaded using thegetDeclaredConstructor()
andgetDeclaredMethod
functions. If this succeeds, the method exists but with an incorrect visibility. If this does not succeed, the method is really non existent.