diff options
author | Brett Porter <brett@apache.org> | 2009-12-02 10:23:42 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-12-02 10:23:42 +0000 |
commit | 209df33fed2f3181dc754197648e4b48c61cb1d4 (patch) | |
tree | 8bee0f4ca8a2d5196394a914df6c9de7fcf20be8 /archiva-modules/archiva-scheduler/archiva-scheduler-repository | |
parent | 42122ac3dfa7040cde9a307b21da8b84bd82a90c (diff) | |
download | archiva-209df33fed2f3181dc754197648e4b48c61cb1d4.tar.gz archiva-209df33fed2f3181dc754197648e4b48c61cb1d4.zip |
[MRM-1025] remove model fields that are not used for clarity
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@886101 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-scheduler/archiva-scheduler-repository')
-rw-r--r-- | archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/scheduler/repository/ArchivaRepositoryScanningTaskExecutorTest.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/scheduler/repository/ArchivaRepositoryScanningTaskExecutorTest.java b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/scheduler/repository/ArchivaRepositoryScanningTaskExecutorTest.java index a79db2a81..fe7ce034e 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/scheduler/repository/ArchivaRepositoryScanningTaskExecutorTest.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/scheduler/repository/ArchivaRepositoryScanningTaskExecutorTest.java @@ -32,7 +32,6 @@ import org.apache.maven.archiva.configuration.ArchivaConfiguration; import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; import org.apache.maven.archiva.database.ArchivaDAO; import org.apache.maven.archiva.database.ArtifactDAO; -import org.apache.maven.archiva.database.constraints.ArtifactsProcessedConstraint; import org.apache.maven.archiva.model.ArchivaArtifact; import org.apache.maven.archiva.model.RepositoryContentStatistics; import org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory; @@ -174,7 +173,7 @@ public class ArchivaRepositoryScanningTaskExecutorTest taskExecutor.executeTask( repoTask ); ArtifactDAO adao = dao.getArtifactDAO(); - List<ArchivaArtifact> unprocessedResultList = adao.queryArtifacts( new ArtifactsProcessedConstraint( false ) ); + List<ArchivaArtifact> unprocessedResultList = adao.queryArtifacts( null ); assertNotNull( unprocessedResultList ); assertEquals("Incorrect number of unprocessed artifacts detected.", 8, unprocessedResultList.size() ); @@ -215,7 +214,7 @@ public class ArchivaRepositoryScanningTaskExecutorTest taskExecutor.executeTask( repoTask ); ArtifactDAO adao = dao.getArtifactDAO(); - List<ArchivaArtifact> unprocessedResultList = adao.queryArtifacts( new ArtifactsProcessedConstraint( false ) ); + List<ArchivaArtifact> unprocessedResultList = adao.queryArtifacts( null ); assertNotNull( unprocessedResultList ); assertEquals("Incorrect number of unprocessed artifacts detected. No new artifacts should have been found.", 0, unprocessedResultList.size() ); @@ -232,7 +231,7 @@ public class ArchivaRepositoryScanningTaskExecutorTest taskExecutor.executeTask( repoTask ); - unprocessedResultList = adao.queryArtifacts( new ArtifactsProcessedConstraint( false ) ); + unprocessedResultList = adao.queryArtifacts( null ); assertNotNull( unprocessedResultList ); assertEquals( "Incorrect number of unprocessed artifacts detected. One new artifact should have been found.", 1, unprocessedResultList.size() ); } @@ -272,7 +271,7 @@ public class ArchivaRepositoryScanningTaskExecutorTest taskExecutor.executeTask( repoTask ); ArtifactDAO adao = dao.getArtifactDAO(); - List<ArchivaArtifact> unprocessedResultList = adao.queryArtifacts( new ArtifactsProcessedConstraint( false ) ); + List<ArchivaArtifact> unprocessedResultList = adao.queryArtifacts( null ); assertNotNull( unprocessedResultList ); assertEquals("Incorrect number of unprocessed artifacts detected.", 8, unprocessedResultList.size() ); |