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

@ -302,13 +302,11 @@ public class RestAnnotationProcessorTest extends BaseRestClientTest {
} catch (ConfigurationException e) { } catch (ConfigurationException e) {
} }
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,