From 1484a3316addf47d88f4f05191ae4e570871eda7 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 2 Jul 2012 07:36:23 +0000 Subject: [MRM-1638] Improve unit test for archiva build Based on patch provided by Eric Barboni. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1356091 13f79535-47bb-0310-9956-ffa450edef68 --- archiva-modules/metadata/metadata-repository-api/pom.xml | 7 ++++--- .../metadata/repository/AbstractMetadataRepositoryTest.java | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'archiva-modules/metadata') diff --git a/archiva-modules/metadata/metadata-repository-api/pom.xml b/archiva-modules/metadata/metadata-repository-api/pom.xml index cbe3affaf..482b2590b 100644 --- a/archiva-modules/metadata/metadata-repository-api/pom.xml +++ b/archiva-modules/metadata/metadata-repository-api/pom.xml @@ -49,10 +49,11 @@ archiva-repository-admin-api - org.springframework - spring-test + org.apache.archiva + archiva-testutil + ${project.version} test - + org.slf4j slf4j-api diff --git a/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java b/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java index 2d3c9fe99..10c1486e7 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java +++ b/archiva-modules/metadata/metadata-repository-api/src/test/java/org/apache/archiva/metadata/repository/AbstractMetadataRepositoryTest.java @@ -38,7 +38,6 @@ import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import java.util.ArrayList; import java.util.Arrays; @@ -49,8 +48,9 @@ import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; +import org.apache.archiva.test.ArchivaSpringJUnit4ClassRunner; -@RunWith( SpringJUnit4ClassRunner.class ) +@RunWith( ArchivaSpringJUnit4ClassRunner.class ) @ContextConfiguration( locations = { "classpath*:/META-INF/spring-context.xml", "classpath*:/spring-context.xml" } ) public abstract class AbstractMetadataRepositoryTest extends TestCase -- cgit v1.2.3