mirror of https://github.com/apache/archiva.git
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:
parent
c4f2ef40af
commit
9dd8cbb2b2
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue