From 72d80ee435cce87a3b338d03bf4d41b876a492b7 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Wed, 11 Apr 2007 21:50:40 +0000 Subject: [PATCH] test case is executing successfully now git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@527692 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-base/archiva-scheduled/pom.xml | 17 ++++++----------- .../executors/ArchivaScheduledTaskExecutor.java | 10 +--------- .../ArchivaScheduledTaskExecutorTest.java | 8 ++++---- 3 files changed, 11 insertions(+), 24 deletions(-) diff --git a/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/pom.xml b/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/pom.xml index 1be6b5b1f..3b6186b13 100644 --- a/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/pom.xml +++ b/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/pom.xml @@ -55,17 +55,6 @@ commons-lang commons-lang - - commons-logging - commons-logging - 1.1 - - - logkit - logkit - - - org.codehaus.plexus plexus-container-default @@ -75,12 +64,18 @@ plexus-registry-api 1.0-alpha-2 + org.codehaus.plexus.registry plexus-registry-commons 1.0-alpha-2 test + + org.apache.maven.archiva + archiva-core-consumers + test + diff --git a/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/executors/ArchivaScheduledTaskExecutor.java b/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/executors/ArchivaScheduledTaskExecutor.java index eca258966..a7b380ddd 100644 --- a/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/executors/ArchivaScheduledTaskExecutor.java +++ b/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/src/main/java/org/apache/maven/archiva/scheduled/executors/ArchivaScheduledTaskExecutor.java @@ -112,18 +112,10 @@ public class ArchivaScheduledTaskExecutor extends AbstractLogEnabled implements long time = System.currentTimeMillis(); - + // insert repository scanning codelets here time = System.currentTimeMillis() - time; getLogger().info( "Finished repository task for " + time + "ms." ); } - - public void execute() throws TaskExecutionException - { - Configuration configuration = archivaConfiguration.getConfiguration(); - - - - } } diff --git a/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/src/test/java/org/apache/maven/archiva/scheduled/executors/ArchivaScheduledTaskExecutorTest.java b/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/src/test/java/org/apache/maven/archiva/scheduled/executors/ArchivaScheduledTaskExecutorTest.java index a3028ee2e..cf1720ea3 100644 --- a/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/src/test/java/org/apache/maven/archiva/scheduled/executors/ArchivaScheduledTaskExecutorTest.java +++ b/archiva-jpox-database-refactor/archiva-base/archiva-scheduled/src/test/java/org/apache/maven/archiva/scheduled/executors/ArchivaScheduledTaskExecutorTest.java @@ -51,15 +51,15 @@ public class ArchivaScheduledTaskExecutorTest public void testExecutor() throws TaskExecutionException { - taskExecutor.executeTask( new TestDataRefreshTask() ); + taskExecutor.executeTask( new TestRepositoryTask() ); } - class TestDataRefreshTask + class TestRepositoryTask extends RepositoryTask { - public String getJobName() + public String getName() { - return "TestDataRefresh"; + return "TestRepositoryTask"; } } } -- 2.39.5