<div dir="ltr">org.jboss.resteasy:resteasy-client:3.0.5.Final</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 12:33 PM, Arun Gupta <span dir="ltr"><<a href="mailto:arun.gupta@gmail.com" target="_blank">arun.gupta@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've written a JAX-RS unit test using JAX-RS Client API:<br>
<br>
@BeforeClass<br>
public static void setupClass() {<br>
Client client = ClientBuilder.newClient();<br>
target =<br>
client.target("<a href="http://localhost:8080/jaxrs-endpoint/webresources/fruit" target="_blank">http://localhost:8080/jaxrs-endpoint/webresources/fruit</a>");<br>
}<br>
<br>
But its failing with the exception:<br>
<br>
org.javaee7.jaxrs.endpoint.MyResourceTest Time elapsed: 0.124 sec <<< ERROR!<br>
java.lang.RuntimeException: java.lang.ClassNotFoundException:<br>
org.glassfish.jersey.client.JerseyClientBuilder<br>
at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:103)<br>
at javax.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:114)<br>
at org.javaee7.jaxrs.endpoint.MyResourceTest.setupClass(MyResourceTest.java:51)<br>
<br>
What <dependency> should be included in the test classpath so that<br>
appropriate ClientBuilder instance is found ?<br>
<span class="HOEnZb"><font color="#888888"><br>
Arun<br>
<br>
--<br>
<a href="http://blog.arungupta.me" target="_blank">http://blog.arungupta.me</a><br>
<a href="http://twitter.com/arungupta" target="_blank">http://twitter.com/arungupta</a><br>
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
</font></span></blockquote></div><br></div>