make easy testing for archetype

This commit is contained in:
Olivier Lamy 2015-10-07 13:46:19 +11:00
parent b2ced491a9
commit 795d6d3957
2 changed files with 3 additions and 7 deletions

View File

@ -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
{

View File

@ -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" );
}
}