archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject [1/2] git commit: more details
Date Wed, 23 Apr 2014 00:10:06 GMT
Repository: archiva
Updated Branches:
  refs/heads/master 6611fc497 -> 6028e6963


more details


Project: http://git-wip-us.apache.org/repos/asf/archiva/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/79cf366b
Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/79cf366b
Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/79cf366b

Branch: refs/heads/master
Commit: 79cf366b8340bd99525403d8642146a4c98caf89
Parents: 6611fc4
Author: Olivier Lamy <olamy@apache.org>
Authored: Tue Apr 22 23:02:35 2014 +1000
Committer: Olivier Lamy <olamy@apache.org>
Committed: Tue Apr 22 23:02:35 2014 +1000

----------------------------------------------------------------------
 .../archiva/repository/scanner/InvalidScanConsumer.java     | 9 +++++++++
 .../archiva/repository/scanner/RepositoryScannerTest.java   | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva/blob/79cf366b/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/InvalidScanConsumer.java
----------------------------------------------------------------------
diff --git a/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/InvalidScanConsumer.java
b/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/InvalidScanConsumer.java
index a253179..6632c0f 100644
--- a/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/InvalidScanConsumer.java
+++ b/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/InvalidScanConsumer.java
@@ -28,6 +28,7 @@ import org.slf4j.LoggerFactory;
 import org.springframework.context.annotation.Scope;
 import org.springframework.stereotype.Service;
 
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
 
@@ -49,6 +50,8 @@ public class InvalidScanConsumer
     
     private int processCount = 0;
 
+    private List<String> paths = new ArrayList<>( );
+
     @Override
     public void beginScan( ManagedRepository repository, Date whenGathered )
         throws ConsumerException
@@ -92,6 +95,7 @@ public class InvalidScanConsumer
         throws ConsumerException
     {
         logger.info( "processFile: {}", path );
+        paths.add( path );
         processCount++;
     }
 
@@ -134,4 +138,9 @@ public class InvalidScanConsumer
     {
         this.id = id;
     }
+
+    public List<String> getPaths()
+    {
+        return paths;
+    }
 }

http://git-wip-us.apache.org/repos/asf/archiva/blob/79cf366b/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/RepositoryScannerTest.java
----------------------------------------------------------------------
diff --git a/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/RepositoryScannerTest.java
b/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/RepositoryScannerTest.java
index dc40787..721d97c 100644
--- a/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/RepositoryScannerTest.java
+++ b/archiva-modules/archiva-base/archiva-repository-scanner/src/test/java/org/apache/archiva/repository/scanner/RepositoryScannerTest.java
@@ -253,7 +253,7 @@ public class RepositoryScannerTest
         assertNotNull( "Stats should not be null.", stats );
         assertMinimumHits( "Stats.totalFileCount", 17, stats.getTotalFileCount() );
         assertMinimumHits( "Processed Count", 17, consumer.getProcessCount() );
-        assertEquals( "Processed Count (of invalid items)", 6, badconsumer.getProcessCount()
);
+        assertEquals( "Processed Count (of invalid items):" + badconsumer.getPaths(), 6,
badconsumer.getProcessCount() );
     }
 
     @Test


Mime
View raw message