Package org.sonatype.nexus.proxy

Examples of org.sonatype.nexus.proxy.NoSuchRepositoryException


    if (repositories.containsKey(repoId)) {
      return repositories.get(repoId);
    }
    else {
      throw new NoSuchRepositoryException(repoId);
    }
  }
View Full Code Here


    if (r.getRepositoryKind().isFacetAvailable(f)) {
      return r.adaptToFacet(f);
    }
    else {
      throw new NoSuchRepositoryException(repoId);
    }
  }
View Full Code Here

    doReturn(MOCK_REPO_ID).when(group).getPathPrefix();

    repositoryRegistry = Mockito.mock(RepositoryRegistry.class);
    doReturn(repository).when(repositoryRegistry).getRepository(MOCK_REPO_ID);
    doReturn(group).when(repositoryRegistry).getRepository(MOCK_GROUP_ID);
    Mockito.doThrow(new NoSuchRepositoryException(NOT_FOUND_REPO_ID))
        .when(repositoryRegistry).getRepository(NOT_FOUND_REPO_ID);

    Set<RepositoryTypeDescriptor> typeDescriptors = new HashSet<>();
    RepositoryTypeDescriptor myHintRtd;
    RepositoryTypeDescriptor invalidRtd;
View Full Code Here

      // if no id found, prefix wins
      return pathPrefixMatched;
    }

    // nothing found
    throw new NoSuchRepositoryException(pathPrefixOrId);
  }
View Full Code Here

        return;
      }
    }

    throw new NoSuchRepositoryException(id);
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.NoSuchRepositoryException

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.