mirror of https://github.com/apache/archiva.git
fix mock call
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308601 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4bc3a05a3b
commit
439563bdb0
|
@ -102,7 +102,7 @@ public class EditManagedRepositoryActionTest
|
||||||
repositoryTaskSchedulerControl = MockClassControl.createControl( RepositoryArchivaTaskScheduler.class );
|
repositoryTaskSchedulerControl = MockClassControl.createControl( RepositoryArchivaTaskScheduler.class );
|
||||||
repositoryTaskScheduler = (RepositoryArchivaTaskScheduler) repositoryTaskSchedulerControl.getMock();
|
repositoryTaskScheduler = (RepositoryArchivaTaskScheduler) repositoryTaskSchedulerControl.getMock();
|
||||||
|
|
||||||
location = new File( "target/test/location" );
|
location = new File( System.getProperty( "basedir", "target/test/location" ) );
|
||||||
|
|
||||||
metadataRepository = mock( MetadataRepository.class );
|
metadataRepository = mock( MetadataRepository.class );
|
||||||
RepositorySession repositorySession = mock( RepositorySession.class );
|
RepositorySession repositorySession = mock( RepositorySession.class );
|
||||||
|
@ -308,6 +308,9 @@ public class EditManagedRepositoryActionTest
|
||||||
|
|
||||||
roleManagerControl.replay();
|
roleManagerControl.replay();
|
||||||
|
|
||||||
|
registry.getString( "appserver.base" );
|
||||||
|
registryControl.setReturnValue( "target/test", 1, 3 );
|
||||||
|
|
||||||
registry.getString( "appserver.base", "${appserver.base}" );
|
registry.getString( "appserver.base", "${appserver.base}" );
|
||||||
registryControl.setReturnValue( "target/test", 1, 3 );
|
registryControl.setReturnValue( "target/test", 1, 3 );
|
||||||
registry.getString( "appserver.home", "${appserver.home}" );
|
registry.getString( "appserver.home", "${appserver.home}" );
|
||||||
|
@ -326,6 +329,7 @@ public class EditManagedRepositoryActionTest
|
||||||
|
|
||||||
Configuration configuration = createConfigurationForEditing( createRepository() );
|
Configuration configuration = createConfigurationForEditing( createRepository() );
|
||||||
archivaConfiguration.getConfiguration();
|
archivaConfiguration.getConfiguration();
|
||||||
|
|
||||||
archivaConfigurationControl.setReturnValue( configuration );
|
archivaConfigurationControl.setReturnValue( configuration );
|
||||||
archivaConfigurationControl.setReturnValue( configuration );
|
archivaConfigurationControl.setReturnValue( configuration );
|
||||||
archivaConfigurationControl.setReturnValue( configuration );
|
archivaConfigurationControl.setReturnValue( configuration );
|
||||||
|
|
Loading…
Reference in New Issue