super.setUp();
//action = (SortProxyConnectorsAction) lookup( Action.class.getName(), "sortProxyConnectorsAction" );
- action = (SortProxyConnectorsAction) getActionProxy( "/admin/sortProxyConnectors.action" ).getAction();
+ action = (SortProxyConnectorsAction) getActionProxy( "/admin/sortUpProxyConnector.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
import org.apache.maven.archiva.security.UserRepositoriesStub;
import org.apache.maven.archiva.web.action.AbstractActionTestCase;
import org.easymock.MockControl;
+import org.junit.After;
import java.io.IOException;
import java.util.ArrayList;
factory.setRepositorySession( repositorySession );
}
+ @After
+ public void tearDown()
+ throws Exception
+ {
+ UserRepositoriesStub stub = applicationContext.getBean( "userRepositories", UserRepositoriesStub.class );
+ stub.setRepoIds( Lists.<String>newArrayList( "test-repo" ) );
+ super.tearDown();
+
+ }
+
private void prepareAction( List<String> selectedRepositories, List<String> availableRepositories )
{
action.setSelectedRepositories( selectedRepositories );