public void testInstantiation()
{
- assertFalse( action == (BrowseAction) getActionProxy( "browse" ).getAction() );
+ assertFalse( action == (BrowseAction) getActionProxy( "browse.action" ).getAction() );
}
public void testBrowse()
{
super.setUp();
//action = (BrowseAction) lookup( Action.class, ACTION_HINT );
- action = (BrowseAction) getActionProxy( "browse" ).getAction();
+ action = (BrowseAction) getActionProxy( "browse.action" ).getAction();
metadataResolver = new TestMetadataResolver();
RepositorySession repositorySession = mock( RepositorySession.class );
when( repositorySession.getResolver() ).thenReturn( metadataResolver );
super.setUp();
//action = (DeleteArtifactAction) lookup( Action.class.getName(), "deleteArtifactAction" );
- action = (DeleteArtifactAction) getActionProxy( "/deleteArtifact" ).getAction();
+ action = (DeleteArtifactAction) getActionProxy( "/deleteArtifact.action" ).getAction();
assertNotNull( action );
configurationControl = MockControl.createControl( ArchivaConfiguration.class );
public void testInstantiation()
{
- assertFalse( action == getActionProxy( "/showArtifact" ).getAction() );
+ assertFalse( action == getActionProxy( "/showArtifact.action" ).getAction() );
}
public void testGetArtifactUniqueRelease()
throws Exception
{
super.setUp();
- action = (ShowArtifactAction) getActionProxy( "/showArtifact" ).getAction();
+ action = (ShowArtifactAction) getActionProxy( "/showArtifact.action" ).getAction();
metadataResolver = new TestMetadataResolver();
MetadataRepository repo = mock( MetadataRepository.class );
protected AbstractAppearanceAction getAction()
{
//return (EditOrganisationInfoAction) lookup( Action.class.getName(), "editOrganisationInfo" );
- return (EditOrganisationInfoAction) getActionProxy( "/admin/editOrganisationInfo" ).getAction();
+ return (EditOrganisationInfoAction) getActionProxy( "/admin/editOrganisationInfo.action" ).getAction();
}
}
{
//return (OrganisationInfoAction) lookup( Action.class.getName(), "organisationInfo" );
- return (OrganisationInfoAction) getActionProxy( "/admin/organisationInfo" ).getAction();
+ return (OrganisationInfoAction) getActionProxy( "/admin/organisationInfo.action" ).getAction();
}
}
{
super.setUp();
- action = (AddProxyConnectorAction) getActionProxy( "addProxyConnector" ).getAction();
+ action = (AddProxyConnectorAction) getActionProxy( "/admin/addProxyConnector.action" ).getAction();
//action = (AddProxyConnectorAction) lookup( Action.class.getName(), "addProxyConnectorAction" );
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
//action = (DeleteProxyConnectorAction) lookup( Action.class.getName(), "deleteProxyConnectorAction" );
- action = (DeleteProxyConnectorAction) getActionProxy( "/admin/deleteProxyConnector" ).getAction();
+ action = (DeleteProxyConnectorAction) getActionProxy( "/admin/deleteProxyConnector.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
super.setUp();
//action = (DisableProxyConnectorAction) lookup( Action.class.getName(), "disableProxyConnectorAction" );
- action = (DisableProxyConnectorAction) getActionProxy( "/admin/disableProxyConnector" ).getAction();
+ action = (DisableProxyConnectorAction) getActionProxy( "/admin/disableProxyConnector.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
super.setUp();
//action = (EditProxyConnectorAction) lookup( Action.class.getName(), "editProxyConnectorAction" );
- action = (EditProxyConnectorAction) getActionProxy( "/admin/editProxyConnector" ).getAction();
+ action = (EditProxyConnectorAction) getActionProxy( "/admin/editProxyConnector.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
//action = (EnableProxyConnectorAction) lookup( Action.class.getName(), "enableProxyConnectorAction" );
- action = (EnableProxyConnectorAction) getActionProxy( "/admin/enableProxyConnector" ).getAction();
+ action = (EnableProxyConnectorAction) getActionProxy( "/admin/enableProxyConnector.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
action.setArchivaConfiguration( archivaConfiguration );
super.setUp();
//action = (SortProxyConnectorsAction) lookup( Action.class.getName(), "sortProxyConnectorsAction" );
- action = (SortProxyConnectorsAction) getActionProxy( "/admin/sortProxyConnectors" ).getAction();
+ action = (SortProxyConnectorsAction) getActionProxy( "/admin/sortProxyConnectors.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
super.setUp();
//action = (AddRemoteRepositoryAction) lookup( Action.class.getName(), "addRemoteRepositoryAction" );
- action = (AddRemoteRepositoryAction) getActionProxy( "/admin/addRemoteRepository" ).getAction();
+ action = (AddRemoteRepositoryAction) getActionProxy( "/admin/addRemoteRepository.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
super.setUp();
//action = (DeleteRemoteRepositoryAction) lookup( Action.class.getName(), "deleteRemoteRepositoryAction" );
- action = (DeleteRemoteRepositoryAction) getActionProxy( "/admin/deleteRemoteRepository" ).getAction();
+ action = (DeleteRemoteRepositoryAction) getActionProxy( "/admin/deleteRemoteRepository.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
super.setUp();
//action = (DeleteRepositoryGroupAction) lookup ( Action.class.getName(), "deleteRepositoryGroupAction" );
- action = (DeleteRepositoryGroupAction) getActionProxy( "/admin/deleteRepositoryGroup" ).getAction();
+ action = (DeleteRepositoryGroupAction) getActionProxy( "/admin/deleteRepositoryGroup.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
//action = (EditRemoteRepositoryAction) lookup( Action.class.getName(), "editRemoteRepositoryAction" );
- action = (EditRemoteRepositoryAction) getActionProxy( "editRemoteRepository" ).getAction();
+ action = (EditRemoteRepositoryAction) getActionProxy( "editRemoteRepository.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
super.setUp();
//action = (RepositoriesAction) lookup( Action.class.getName(), "repositoriesAction" );
- action = (RepositoriesAction) getActionProxy( "/admin/index" ).getAction();
+ action = (RepositoriesAction) getActionProxy( "/admin/index.action" ).getAction();
}
super.setUp();
//action = (RepositoryGroupsAction) lookup( Action.class.getName(), "repositoryGroupsAction" );
- action = (RepositoryGroupsAction) getActionProxy( "/admin/repositoryGroups" );
+ action = (RepositoryGroupsAction) getActionProxy( "/admin/repositoryGroups.action" );
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
//action = (SortRepositoriesAction) lookup( Action.class.getName(), "sortRepositoriesAction" );
- action = (SortRepositoriesAction) getActionProxy( "sortDownRepositoryFromGroup" ).getAction();
+ action = (SortRepositoriesAction) getActionProxy( "sortDownRepositoryFromGroup.action" ).getAction();
archivaConfigurationControl = MockControl.createControl( ArchivaConfiguration.class );
archivaConfiguration = (ArchivaConfiguration) archivaConfigurationControl.getMock();
action.setArchivaConfiguration( archivaConfiguration );
//action = (GenerateReportAction) lookup( Action.class, "generateReport" );
- action = (GenerateReportAction) getActionProxy( "/admin/generateReport" ).getAction();
+ action = (GenerateReportAction) getActionProxy( "/admin/generateReport.action" ).getAction();
repositoryStatisticsManagerControl = MockControl.createControl( RepositoryStatisticsManager.class );
repositoryStatisticsManager = (RepositoryStatisticsManager) repositoryStatisticsManagerControl.getMock();