Examples of ArchivaDAOStub


Examples of org.apache.maven.archiva.web.action.admin.repositories.ArchivaDAOStub

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

        ArchivaDAOStub archivaDAOStub = (ArchivaDAOStub) lookup( ArchivaDAO.class, "jdo" );
        archivaDAOStub.setRepositoryIds( Arrays.asList( "repo1", "repo2" ) );

        repositoryProblemDAOControl = MockControl.createControl( RepositoryProblemDAO.class );
        repositoryProblemDAO = (RepositoryProblemDAO) repositoryProblemDAOControl.getMock();
        archivaDAOStub.setRepositoryProblemDAO( repositoryProblemDAO );

        action = (GenerateReportAction) lookup( Action.class, "generateReport" );
    }
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.