Package org.sonatype.nexus.test.utils

Examples of org.sonatype.nexus.test.utils.RoutesMessageUtil.sendMessage()


    RepositoryRouteMemberRepository memberRepo1 = new RepositoryRouteMemberRepository();
    memberRepo1.setId("nexus-test-harness-repo");
    resource.addRepository(memberRepo1);

    RoutesMessageUtil routesUtil = new RoutesMessageUtil(this.getXMLXStream(), MediaType.APPLICATION_XML);
    Status status = routesUtil.sendMessage(Method.POST, resource).getStatus();
    Assert.assertTrue("Unable to create a route " + status, status.isSuccess());

    List<RepositoryRouteListResource> routes = RoutesMessageUtil.getList();
    Assert.assertFalse("No itens to be tested", routes.isEmpty());
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.