Bernard Labno

Results 37 comments of Bernard Labno

@lordofthejars This code should be run only in @RunAsClient mode because rest client is rest created only using RestEasy. Although John Ament has created pure JAX-RS impl of the extension....

@lordofthejars such testcase would be very welcome.

> maybe exclude Jersey dependency from test?¿ But then server won't receive it and I need it because it is a Tomcat. I think that the problem is embedded mode...

I've created prototype of jersey impl of our extension: ``` package org.jboss.arquillian.extension.rest.client; import org.glassfish.jersey.client.JerseyClientBuilder; import org.glassfish.jersey.client.JerseyWebTarget; import org.glassfish.jersey.client.proxy.WebResourceFactory; import org.jboss.arquillian.test.spi.TestEnricher; import javax.ws.rs.Consumes; import javax.ws.rs.Produces; import javax.ws.rs.client.Client; import javax.ws.rs.client.WebTarget; import java.lang.annotation.Annotation;...

@lordofthejars Could you have a look at getCustomerById test? https://github.com/blabno/arquillian-extension-rest/commit/03a6959d6f4f42c60211dc5873814b7fbc708de5#diff-c84ee3844f0ecbbefcbecf1202a011f3R113 If I run it in tomcat-embedded profile (Jersey on server side). I'm getting 404.

I haven't tested it with remote tomcat just managed as7 and embedded tomcat. 19 maj 2014 15:10 "Alex Soto" [email protected] napisał(a): > In remote it works right? > > Enviat...

> It works with managed Tomcat, so I'll try to check the dependencies again. Well, actually it does not work.

@lordofthejars I have commited Tomcat managed profile, but the problem with getCustomerById remains.

What a stupid issue! I've just noticed that `CustomerResourceImpl.getCustomerById` has JAX-RS annotation. If I remove it and leave annotations only on `CustomerResource` interface then everything woks. ``` public Customer getCustomerById(@PathParam("id")...

Which part of http request you want to dump, body, headers, cookies?