mirror of https://github.com/apache/jclouds.git
Issue 695: Fixed javadoc and incorrect class in JAXB parsing test
This commit is contained in:
parent
a756462bc9
commit
97ef140776
|
@ -33,7 +33,7 @@ import java.util.Set;
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Networks is more than a simple wrapper as it extends BaseResource.
|
* Networks is more than a simple wrapper as it extends Resource.
|
||||||
* @author Jason King
|
* @author Jason King
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -87,7 +87,7 @@ public class NetworksJAXBParsingTest extends BaseRestClientTest {
|
||||||
@Test
|
@Test
|
||||||
public void testParseNetworksWithJAXB() throws Exception {
|
public void testParseNetworksWithJAXB() throws Exception {
|
||||||
Method method = NetworkAsyncClient.class.getMethod("getNetworks",URI.class);
|
Method method = NetworkAsyncClient.class.getMethod("getNetworks",URI.class);
|
||||||
HttpRequest request = factory(LocationAsyncClient.class).createRequest(method, new URI("/1"));
|
HttpRequest request = factory(NetworkAsyncClient.class).createRequest(method, new URI("/1"));
|
||||||
assertResponseParserClassEquals(method, request, ParseXMLWithJAXB.class);
|
assertResponseParserClassEquals(method, request, ParseXMLWithJAXB.class);
|
||||||
|
|
||||||
Function<HttpResponse, Networks> parser = (Function<HttpResponse, Networks>) RestAnnotationProcessor
|
Function<HttpResponse, Networks> parser = (Function<HttpResponse, Networks>) RestAnnotationProcessor
|
||||||
|
@ -104,7 +104,7 @@ public class NetworksJAXBParsingTest extends BaseRestClientTest {
|
||||||
@Test
|
@Test
|
||||||
public void testParseNetworkWithJAXB() throws Exception {
|
public void testParseNetworkWithJAXB() throws Exception {
|
||||||
Method method = NetworkAsyncClient.class.getMethod("getNetwork",URI.class);
|
Method method = NetworkAsyncClient.class.getMethod("getNetwork",URI.class);
|
||||||
HttpRequest request = factory(LocationAsyncClient.class).createRequest(method, new URI("/1"));
|
HttpRequest request = factory(NetworkAsyncClient.class).createRequest(method, new URI("/1"));
|
||||||
assertResponseParserClassEquals(method, request, ParseXMLWithJAXB.class);
|
assertResponseParserClassEquals(method, request, ParseXMLWithJAXB.class);
|
||||||
|
|
||||||
Function<HttpResponse, NetworkReference> parser = (Function<HttpResponse, NetworkReference>) RestAnnotationProcessor
|
Function<HttpResponse, NetworkReference> parser = (Function<HttpResponse, NetworkReference>) RestAnnotationProcessor
|
||||||
|
|
Loading…
Reference in New Issue