Package org.apache.archiva.security

Examples of org.apache.archiva.security.UserRepositoriesStub


    protected void setUp()
        throws Exception
    {
        super.setUp();

        UserRepositoriesStub stub = applicationContext.getBean( "userRepositories", UserRepositoriesStub.class );
        stub.setRepoIds( Lists.<String>newArrayList( "internal", "snapshots" ) );

        action = (GenerateReportAction) getActionProxy( "/report/generateReport.action" ).getAction();

        repositoryStatisticsManagerControl = MockControl.createControl( RepositoryStatisticsManager.class );
        repositoryStatisticsManager = (RepositoryStatisticsManager) repositoryStatisticsManagerControl.getMock();
View Full Code Here


    @After
    public void tearDown()
        throws Exception
    {
        UserRepositoriesStub stub = applicationContext.getBean( "userRepositories", UserRepositoriesStub.class );
        stub.setRepoIds( Lists.<String>newArrayList( "test-repo" ) );

        super.tearDown();

    }
View Full Code Here

        return new String[]{ "classpath*:/META-INF/spring-context.xml", "classpath*:/spring-context.xml" };
    }

    protected void setObservableRepos( List<String> repoIds )
    {
        UserRepositoriesStub repos = applicationContext.getBean( "userRepositories", UserRepositoriesStub.class );
        repos.setObservableRepositoryIds( repoIds );
    }
View Full Code Here

        return new String[]{ "classpath*:/META-INF/spring-context.xml", "classpath*:/spring-context.xml" };
    }

    protected void setObservableRepos( List<String> repoIds )
    {
        UserRepositoriesStub repos = applicationContext.getBean( "userRepositories", UserRepositoriesStub.class );
        repos.setObservableRepositoryIds( repoIds );
    }
View Full Code Here

    public void setUp()
        throws Exception
    {
        super.setUp();

        UserRepositoriesStub stub = applicationContext.getBean( "userRepositories", UserRepositoriesStub.class );
        stub.setRepoIds( Lists.<String>newArrayList( "internal", "snapshots" ) );

        action = (GenerateReportAction) getActionProxy( "/report/generateReport.action" ).getAction();

        repositoryStatisticsManagerControl = MockControl.createControl( RepositoryStatisticsManager.class );
        repositoryStatisticsManager = (RepositoryStatisticsManager) repositoryStatisticsManagerControl.getMock();
View Full Code Here

    @Override
    @After
    public void tearDown()
        throws Exception
    {
        UserRepositoriesStub stub = applicationContext.getBean( "userRepositories", UserRepositoriesStub.class );
        stub.setRepoIds( Lists.<String>newArrayList( "test-repo" ) );

        super.tearDown();

    }
View Full Code Here

TOP

Related Classes of org.apache.archiva.security.UserRepositoriesStub

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.