Examples of findManagedRepositoryById()


Examples of org.apache.maven.archiva.configuration.Configuration.findManagedRepositoryById()

    {
        RepositoryServlet servlet = (RepositoryServlet) sc.newInvocation( REQUEST_PATH ).getServlet();
        assertNotNull( servlet );

        Configuration c = configuration.getConfiguration();
        c.removeManagedRepository( c.findManagedRepositoryById( REPOSITORY_ID ) );
        // TODO it would be better to use a mock configuration and "save" to more accurately reflect the calls made
        triggerConfigurationChange( servlet, "managedRepositories.managedRepository(0).id", REPOSITORY_ID );

        ManagedRepositoryConfiguration repository = servlet.getRepository( REPOSITORY_ID );
        assertNull( repository );
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.