test case is executing successfully now

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches/archiva-jpox-database-refactor@527692 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jesse McConnell 2007-04-11 21:50:40 +00:00
parent c4f2ef40af
commit 9dd8cbb2b2
3 changed files with 11 additions and 24 deletions

View File

@ -55,17 +55,6 @@
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1</version>
<exclusions>
<exclusion>
<groupId>logkit</groupId>
<artifactId>logkit</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
@ -75,12 +64,18 @@
<artifactId>plexus-registry-api</artifactId>
<version>1.0-alpha-2</version>
</dependency>
<!-- Test Dependencies -->
<dependency>
<groupId>org.codehaus.plexus.registry</groupId>
<artifactId>plexus-registry-commons</artifactId>
<version>1.0-alpha-2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.archiva</groupId>
<artifactId>archiva-core-consumers</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

View File

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

View File

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