easymock woe

Testcase: canRetryConnections(org.familysearch.digitalarchive.sharedclientapis.ApiConnectionTest):        Caused an ERROR
java.net.HttpURLConnection is not an interface
java.lang.IllegalArgumentException: java.net.HttpURLConnection is not an interface
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
at org.easymock.internal.JavaProxyFactory.createProxy(JavaProxyFactory.java:13)
at
meant “you need to use easymock classextension in your pom, and your import must then be”
import org.easymock.classextension.EasyMock;
instead of
import org.easymock.EasyMock; // don’t use this line!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>