* under the License.
*/
+import com.google.common.collect.Lists;
import com.opensymphony.xwork2.Action;
import org.apache.archiva.metadata.model.MetadataFacet;
import org.apache.archiva.metadata.repository.MetadataRepository;
import org.apache.archiva.metadata.repository.stats.RepositoryStatisticsManager;
import org.apache.archiva.reports.RepositoryProblemFacet;
import org.apache.commons.io.IOUtils;
+import org.apache.maven.archiva.security.UserRepositoriesStub;
import org.apache.maven.archiva.web.action.AbstractActionTestCase;
import org.easymock.MockControl;
//action = (GenerateReportAction) lookup( Action.class, "generateReport" );
- action = (GenerateReportAction) getActionProxy( "/admin/generateReport.action" ).getAction();
+ 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();