Test to check annotation processor finds the correct async client method

This commit is contained in:
Adam Lowe 2012-04-10 08:12:40 +01:00
parent 047662a4b1
commit bae9633d23
1 changed files with 5 additions and 7 deletions

View File

@ -303,12 +303,10 @@ public class RestAnnotationProcessorTest extends BaseRestClientTest {
} }
Caller caller = child.getInstance(Caller.class); child.getInstance(Caller.class).getCallee().onePath("foo");
child.getInstance(Caller.class).getCallee2().onePath("bar");
caller.getCallee().onePath("foo"); // Note if wrong method is picked up, we'll see "http://localhost:1111/client/1/foo/2"!
caller.getCallee2().onePath("bar"); child.getInstance(Caller.class).getCallee().onePath("foo");
// Note this used to result in "http://localhost:1111/client/1/foo/2"!
caller.getCallee().onePath("foo");
} }
public void testAsyncDelegateIsLazyLoadedAndRequestIncludesEndpointVersionAndPath() throws InterruptedException, public void testAsyncDelegateIsLazyLoadedAndRequestIncludesEndpointVersionAndPath() throws InterruptedException,