Package org.apache.archiva.admin.model.managed

Examples of org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin


        managedDefaultRepository = repoContent;

        ( (DefaultManagedRepositoryAdmin) applicationContext.getBean(
            ManagedRepositoryAdmin.class ) ).setArchivaConfiguration( config );

        ManagedRepositoryAdmin managedRepositoryAdmin = applicationContext.getBean( ManagedRepositoryAdmin.class );
        if ( managedRepositoryAdmin.getManagedRepository( repo.getId() ) == null )
        {
            managedRepositoryAdmin.addManagedRepository( repo, false, null );
        }

        //config.getConfiguration().addManagedRepository( repo );

        Handler handler = new AbstractHandler()
View Full Code Here


    private void prepareAction( List<String> selectedRepositories, List<String> availableRepositories )
        throws Exception
    {
        MockControl managedRepositoryControl = MockControl.createControl( ManagedRepositoryAdmin.class );
        ManagedRepositoryAdmin managedRepositoryAdmin = (ManagedRepositoryAdmin) managedRepositoryControl.getMock();

        Map<String, ManagedRepository> map = new HashMap<String, ManagedRepository>( availableRepositories.size() );
        for ( String repoId : availableRepositories )
        {
            map.put( repoId, new ManagedRepository() );
        }

        managedRepositoryControl.expectAndReturn( managedRepositoryAdmin.getManagedRepositoriesAsMap(), map, 1, 10 );

        managedRepositoryControl.replay();
        action.setManagedRepositoryAdmin( managedRepositoryAdmin );

View Full Code Here

TOP

Related Classes of org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin

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.