mirror of https://github.com/apache/jclouds.git
Test to check annotation processor finds the correct async client method
This commit is contained in:
parent
047662a4b1
commit
bae9633d23
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue