From 209df33fed2f3181dc754197648e4b48c61cb1d4 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Wed, 2 Dec 2009 10:23:42 +0000 Subject: [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 --- .../repository/ArchivaRepositoryScanningTaskExecutorTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'archiva-modules/archiva-scheduler/archiva-scheduler-repository') 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 unprocessedResultList = adao.queryArtifacts( new ArtifactsProcessedConstraint( false ) ); + List 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 unprocessedResultList = adao.queryArtifacts( new ArtifactsProcessedConstraint( false ) ); + List 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 unprocessedResultList = adao.queryArtifacts( new ArtifactsProcessedConstraint( false ) ); + List unprocessedResultList = adao.queryArtifacts( null ); assertNotNull( unprocessedResultList ); assertEquals("Incorrect number of unprocessed artifacts detected.", 8, unprocessedResultList.size() ); -- cgit v1.2.3