Package org.sonatype.nexus.obr.metadata

Examples of org.sonatype.nexus.obr.metadata.ObrSite


  @Test
  public void testObrParsing()
      throws Exception
  {
    final ObrSite testSite = openObrSite(testRepository, "/obr/samples/osgi_alliance_obr.zip");
    final ObrResourceReader reader = obrMetadataSource.getReader(testSite);

    final BufferedReader br =
        new BufferedReader(new InputStreamReader(getResourceAsStream("/obr/samples/osgi_alliance_obr.lst")));
View Full Code Here


  @Test
  public void testObrReferral()
      throws Exception
  {
    final ObrSite testSite = openObrSite(testRepository, "/obr/samples/referrals.xml");
    final ObrResourceReader reader = obrMetadataSource.getReader(testSite);

    int numBundles = 0;
    int numExceptions = 0;
View Full Code Here

  @Test
  public void testObrSerializing()
      throws Exception
  {
    final ObrSite testSite = openObrSite(testRepository, "/obr/samples/osgi_alliance_obr.zip");

    final RepositoryItemUid uid = testRepository.createUid("/obr/repository.xml");

    ObrResourceReader reader = obrMetadataSource.getReader(testSite);
    final ObrResourceWriter writer = obrMetadataSource.getWriter(uid);
View Full Code Here

  {
    final ResourceStoreRequest request = new ResourceStoreRequest(path);

    final URL url = repository.getLocalStorage().getAbsoluteUrlFromBase(repository, request);

    return new ObrSite()
    {
      public String getMetadataPath() {
        return path;
      }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.obr.metadata.ObrSite

Copyright © 2018 www.massapicom. 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.