I’m not able to get my method to return the desired value. Above implementations shows how I have written my test, but it’s not working. What am i doing wrong here? Answer Yet to clarify given answers: your mistake is that you do not actually use that spy/mock anywhere. In your class A you have a static method where a
Tag: stub
Access restriction on class due to restriction on required library rt.jar?
I’m attempting to compile Java 1.4 code that was created by IBM’s WSDL2Java on Java5 without recreating the stubs and saw this error in Eclipse. I’m under the assumption that the stubs generated should just compile as long as the runtime jars are available (they are). Access restriction: The type QName is not accessible due to restriction on required library