Examples of MirrorResourceListResponse


Examples of org.sonatype.nexus.rest.model.MirrorResourceListResponse

    LOG.debug(" getResourceFromResponse: " + responseText);

    representation = new XStreamRepresentation(xstream, responseText, mediaType);

    // this
    MirrorResourceListResponse resourceResponse =
        (MirrorResourceListResponse) representation.getPayload(new MirrorResourceListResponse());

    Assert.assertNotNull("Resource Response shouldn't be null", resourceResponse);

    for (MirrorResource resource : resourceResponse.getData()) {
      Assert.assertNotNull(resource.getId(), "Id shouldn't be null");
    }

    for (int i = 0; i < resourceResponse.getData().size(); i++) {
      Assert.assertEquals(resourceRequest.getData().get(i).getUrl(),
          resourceResponse.getData().get(i).getUrl());
    }

    return resourceResponse;
  }
View Full Code Here

Examples of org.sonatype.nexus.rest.model.MirrorResourceListResponse

    LOG.debug(" getResourceFromResponse: " + responseText);

    representation = new XStreamRepresentation(xstream, responseText, mediaType);

    // this
    MirrorResourceListResponse resourceResponse =
        (MirrorResourceListResponse) representation.getPayload(new MirrorResourceListResponse());

    Assert.assertNotNull("Resource Response shouldn't be null", resourceResponse);

    for (MirrorResource resource : resourceResponse.getData()) {
      Assert.assertNotNull(resource.getUrl(), "URL shouldn't be null");
    }

    return resourceResponse;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.