-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
org.jboss.resteasy.test.finegrain.client.ResponseObjectTest works fine when using deprecated ProxyFactory.
When I use its replacement ProxyBuilder instead, I get failure for both tests testLinkFollow and testSimple.
The output of failed tests:
testLinkFollowProxyBuilder(org.jboss.resteasy.test.client.ResponseObjectTest) Time elapsed: 0.727 sec <<< ERROR! javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request at org.jboss.resteasy.test.client.ResponseObjectTest.testLinkFollowProxyBuilder(ResponseObjectTest.java:168) Caused by: java.lang.IllegalArgumentException: Method may not be null at org.jboss.resteasy.test.client.ResponseObjectTest.testLinkFollowProxyBuilder(ResponseObjectTest.java:168) testSimpleProxyBuilder(org.jboss.resteasy.test.client.ResponseObjectTest) Time elapsed: 0.109 sec <<< ERROR! java.lang.ClassCastException: org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine$1 cannot be cast to org.jboss.resteasy.client.ClientResponse at org.jboss.resteasy.test.client.ResponseObjectTest.testSimpleProxyBuilder(ResponseObjectTest.java:153)
The problem happends when invoking these to methods on the ResponseObjects obj annotated objects:
obj.response()
obj.followNextLink()
- clones
-
JBEAP-2446 ResponseObjectTest failing when using ProxyBuilder
- Closed