aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2015-10-07 13:46:19 +1100
committerOlivier Lamy <olamy@apache.org>2015-10-07 13:46:19 +1100
commit795d6d3957fd5b8e657ff0d46a165ea9a8723139 (patch)
tree0fd499b660271df668d5a03f6be3410d8b971e4b /archiva-modules
parentb2ced491a9b1d7d3b446142ce743d28c1ae4d50e (diff)
downloadarchiva-795d6d3957fd5b8e657ff0d46a165ea9a8723139.tar.gz
archiva-795d6d3957fd5b8e657ff0d46a165ea9a8723139.zip
make easy testing for archetype
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java4
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/java/SimpleArtifactConsumerTest.java6
2 files changed, 3 insertions, 7 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java
index 877a5c29f..9c9a41e80 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/main/java/SimpleArtifactConsumer.java
@@ -101,7 +101,7 @@ public class SimpleArtifactConsumer
throws ConsumerException
{
this.repository = repository;
- log.info( "Beginning scan of repository [" + this.repository.getId() + "]" );
+ log.info( "Beginning scan of repository [{}]", this.repository.getId() );
repositorySession = repositorySessionFactory.createSession();
}
@@ -115,7 +115,7 @@ public class SimpleArtifactConsumer
public void processFile( String path, boolean executeOnEntireRepo )
throws ConsumerException
{
- log.info( "Processing entry [" + path + "] from repository [" + this.repository.getId() + "]" );
+ log.info( "Processing entry [{}] from repository [{}]", path, this.repository.getId() );
try
{
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/java/SimpleArtifactConsumerTest.java b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/java/SimpleArtifactConsumerTest.java
index 1b44182e4..f8a9dd3bd 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/java/SimpleArtifactConsumerTest.java
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/main/resources/archetype-resources/src/test/java/SimpleArtifactConsumerTest.java
@@ -99,11 +99,7 @@ public class SimpleArtifactConsumerTest
consumer.beginScan( testRepository, new Date() );
consumer.processFile( "org/simple/test/testartifact/testartifact/1.0/testartifact-1.0.pom" );
consumer.processFile( "org/simple/test/testartifact/testartifact/1.1/testartifact-1.1.pom" );
-
- verify( metadataRepository ).getArtifacts( testRepository.getId(), "org.simple.test.testartifact",
- "testartifact", "1.0" );
- verify( metadataRepository ).getArtifacts( testRepository.getId(), "org.simple.test.testartifact",
- "testartifact", "1.1" );
+
}
}