Hey all,
just getting started with jersey and trying to develop some tests for the code im writing. I have a custom MessageBody Reader and Writer for one type of content that i'm sending so i want to be able to verify that it all works properly, however i'm having trouble getting this to work w/ the jersey test framework.
I was able to get the client side working properly with by creating a client config like this:
<pre>
public class MainTest extends JerseyTest {
private static final ClientConfig cc;
static
{
cc = new DefaultClientConfig();
cc.getClasses().add(ProtobufMessageReader.class);
cc.getClasses().add(ProtobufMessageWriter.class);
}
public MainTest() throws Exception {
super(new WebAppDescriptor.Builder("com.symantec.rest.test.resources").clientConfig(cc).build());
}
<pre>
however now it still fails on the server side (its using grizzly) my tests are in a separate jar from the classes that are annotated as @Provider so i'm wondering if that is what is causing the problem and if there is a workaround?
Thanks
Adam
[Message sent by forum member 'aschepis']
http://forums.java.net/jive/thread.jspa?messageID=396264