]> source.dussan.org Git - archiva.git/commitdiff
use mock in consumer archetype
authorOlivier Lamy <olamy@apache.org>
Thu, 1 Oct 2015 04:53:41 +0000 (14:53 +1000)
committerOlivier Lamy <olamy@apache.org>
Thu, 1 Oct 2015 04:53:41 +0000 (14:53 +1000)
archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/resources/spring-context.xml
archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resourcesstatic/archetype-resources/pom.xml

index f17d5b4d664af081bb32f2367197c3936f0655a7..8a12f3a173b28392870da1d36b36cea33661ecd9 100644 (file)
@@ -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
index 6c2c9b3eb93373171dad70662f441860a97aa8fa..6acfc765013d680fe44031916685cbd80024096b 100644 (file)
       <artifactId>metadata-repository-api</artifactId>
       <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>