diff options
author | Martin Stockhammer <martin_s@apache.org> | 2021-01-27 22:17:34 +0100 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2021-01-27 22:17:34 +0100 |
commit | 8fa8083ef91f7a53ea7257b880326550b122e062 (patch) | |
tree | 30ffb00c2d172d11888bc333f4cdae2c2e2e11d2 /archiva-modules/metadata | |
parent | b32d75a85b4f5805d6d251ea2237f838087aa2bf (diff) | |
download | archiva-8fa8083ef91f7a53ea7257b880326550b122e062.tar.gz archiva-8fa8083ef91f7a53ea7257b880326550b122e062.zip |
Making application context dirty after each test class run
Diffstat (limited to 'archiva-modules/metadata')
2 files changed, 4 insertions, 2 deletions
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 65b6b3e1d..b29f7da34 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 @@ -31,6 +31,7 @@ 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.text.SimpleDateFormat; import java.time.ZoneId; @@ -41,7 +42,7 @@ import java.util.stream.Stream; import static org.assertj.core.api.Assertions.assertThat; -@RunWith( ArchivaSpringJUnit4ClassRunner.class ) +@RunWith( SpringJUnit4ClassRunner.class ) @ContextConfiguration( locations = {"classpath*:/META-INF/spring-context.xml", "classpath*:/spring-context.xml"} ) public abstract class AbstractMetadataRepositoryTest extends TestCase diff --git a/archiva-modules/metadata/metadata-store-provider/oak-jcr/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/stats/JcrRepositoryStatisticsGatheringTest.java b/archiva-modules/metadata/metadata-store-provider/oak-jcr/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/stats/JcrRepositoryStatisticsGatheringTest.java index c10103a16..35166df41 100644 --- a/archiva-modules/metadata/metadata-store-provider/oak-jcr/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/stats/JcrRepositoryStatisticsGatheringTest.java +++ b/archiva-modules/metadata/metadata-store-provider/oak-jcr/metadata-store-jcr/src/test/java/org/apache/archiva/metadata/repository/stats/JcrRepositoryStatisticsGatheringTest.java @@ -43,6 +43,7 @@ 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 javax.jcr.ImportUUIDBehavior; import javax.jcr.Node; @@ -62,7 +63,7 @@ import java.util.List; import java.util.Map; import java.util.zip.GZIPInputStream; -@RunWith( ArchivaSpringJUnit4ClassRunner.class ) +@RunWith( SpringJUnit4ClassRunner.class ) @ContextConfiguration( locations = { "classpath*:/META-INF/spring-context.xml", "classpath*:/spring-context.xml" } ) public class JcrRepositoryStatisticsGatheringTest extends TestCase |