diff options
author | Olivier Lamy <olamy@apache.org> | 2015-10-01 14:53:41 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2015-10-01 14:53:41 +1000 |
commit | 1127e2afcef2b2a927d484c7f7277de7032d85ce (patch) | |
tree | abfd4bc7f7de54e440abaa65dff263cc3745e91a /archiva-modules | |
parent | e62d96a1fa22bc477ef1e3cbfdc8404e07864cad (diff) | |
download | archiva-1127e2afcef2b2a927d484c7f7277de7032d85ce.tar.gz archiva-1127e2afcef2b2a927d484c7f7277de7032d85ce.zip |
use mock in consumer archetype
Diffstat (limited to 'archiva-modules')
2 files changed, 7 insertions, 2 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/spring-context.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/spring-context.xml index f17d5b4d6..8a12f3a17 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/spring-context.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/spring-context.xml @@ -28,7 +28,6 @@ <mockito:mock id="mockManagedRepositoryAdmin" class="org.apache.archiva.admin.model.managed.ManagedRepositoryAdmin" /> <mockito:mock id="mockRemoteRepositoryAdmin" class="org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin" /> - <mockito:mock id="mockRepositorySessionFactory" class="org.apache.archiva.metadata.repository.RepositorySessionFactory" /> - <alias alias="repositorySessionFactory#jcr" name="mockRepositorySessionFactory" /> + <alias alias="repositorySessionFactory#jcr" name="repositorySessionFactory#mock" /> </beans>
\ No newline at end of file diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resourcesstatic/archetype-resources/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resourcesstatic/archetype-resources/pom.xml index 6c2c9b3eb..6acfc7650 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resourcesstatic/archetype-resources/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resourcesstatic/archetype-resources/pom.xml @@ -73,6 +73,12 @@ <version>${archiva.version}</version> </dependency> <dependency> + <groupId>org.apache.archiva</groupId> + <artifactId>archiva-mock</artifactId> + <version>${archiva.version}</version> + <scope>test</scope> + </dependency> + <dependency> <groupId>org.apache.archiva.redback.components.registry</groupId> <artifactId>spring-registry-api</artifactId> <version>${redback.registry.version}</version> |