Examples of ObrProxyRepository


Examples of org.sonatype.nexus.repository.obr.client.ObrProxyRepository

      throws Exception
  {
    final String rId = repositoryIdForTest() + "-proxy";

    // create the repo
    final ObrProxyRepository proxyRepository = repositories().create(ObrProxyRepository.class, rId)
        .asProxyOf("http://sigil.codecauldron.org/spring-external.obr")
        .save();

    // check for equality here
    assertObrPath(rId, "http://sigil.codecauldron.org/", "/spring-external.obr");

    // note internal opposed to external
    proxyRepository.asProxyOf("http://sigil.codecauldron.org/spring-internal.obr").save();

    // check again for equality here
    assertObrPath(rId, "http://sigil.codecauldron.org/", "/spring-internal.obr");

    // note sigil2
    proxyRepository.asProxyOf("http://sigil2.codecauldron.org/spring-external.obr").save();

    // check again for equality here
    assertObrPath(rId, "http://sigil2.codecauldron.org/", "/spring-external.obr");

    // note sigil3 and external -> internal
    proxyRepository.asProxyOf("http://sigil3.codecauldron.org/spring-internal.obr").save();

    // check again for equality here
    assertObrPath(rId, "http://sigil3.codecauldron.org/", "/spring-internal.obr");
  }
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.