Examples of removeMemberRepositoryId()


Examples of org.sonatype.nexus.proxy.maven.MavenGroupRepository.removeMemberRepositoryId()

    prefixFileUpdateListener.reset();

    final MavenGroupRepository mgr =
        getRepositoryRegistry().getRepositoryWithFacet(GROUP1_REPO_ID, MavenGroupRepository.class);

    mgr.removeMemberRepositoryId(HOSTED1_REPO_ID);
    getApplicationConfiguration().saveConfiguration();
    waitForRoutingBackgroundUpdates();

    assertThat(prefixFileUpdateListener.getPublished(), contains(GROUP1_REPO_ID, GROUP2_REPO_ID));
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.MavenGroupRepository.removeMemberRepositoryId()

    prefixFileUpdateListener.reset();

    final MavenGroupRepository mgr =
        getRepositoryRegistry().getRepositoryWithFacet(GROUP2_REPO_ID, MavenGroupRepository.class);

    mgr.removeMemberRepositoryId(GROUP1_REPO_ID);
    mgr.addMemberRepositoryId(HOSTED1_REPO_ID);
    getApplicationConfiguration().saveConfiguration();
    waitForRoutingBackgroundUpdates();

    assertThat(prefixFileUpdateListener.getPublished(), contains(GROUP2_REPO_ID));
View Full Code Here

Examples of org.sonatype.nexus.proxy.repository.GroupRepository.removeMemberRepositoryId()

    searchFor("org.sonatype.plexus", 1, group.getId()); // snapshots is member of public
    searchFor("org.sonatype.test-evict", 1, "apache-snapshots"); // is in this repo
    searchFor("org.sonatype.test-evict", 0, group.getId()); // apache-snapshots not a member

    // reconfigure group: remove snapshots
    group.removeMemberRepositoryId(snapshots.getId());
    nexusConfiguration().saveConfiguration();
    waitForTasksToStop();
    wairForAsyncEventsToCalmDown();

    // assure context does exists (if Igor comments out few lines or so, as MI will plainly swallow targeted search
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.