Examples of YumRegistry


Examples of org.sonatype.nexus.yum.YumRegistry

    when(repositoryKind.isFacetAvailable(HostedRepository.class)).thenReturn(false);
    Repository repository = mock(Repository.class);
    when(repository.getRepositoryKind()).thenReturn(repositoryKind);
    Yum yum = mock(Yum.class);
    when(yum.getNexusRepository()).thenReturn(repository);
    YumRegistry yumRegistry = mock(YumRegistry.class);
    when(yumRegistry.isRegistered(REPO)).thenReturn(true);
    when(yumRegistry.get(REPO)).thenReturn(yum);

    GenerateMetadataTask task = new GenerateMetadataTask(
        mock(EventBus.class),
        mock(RepositoryRegistry.class),
        yumRegistry,
View Full Code Here

Examples of org.sonatype.nexus.yum.YumRegistry

  private MockScheduledTask<YumRepository> scheduledTask(GenerateMetadataTask task) {
    return new MockScheduledTask<YumRepository>(task);
  }

  private GenerateMetadataTask task(String repo, String version) {
    final YumRegistry yumRegistry = mock(YumRegistry.class);
    when(yumRegistry.maxNumberOfParallelThreads()).thenReturn(YumRegistry.DEFAULT_MAX_NUMBER_PARALLEL_THREADS);

    GenerateMetadataTask task = new GenerateMetadataTask(
        mock(EventBus.class),
        mock(RepositoryRegistry.class),
        yumRegistry,
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.