aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/problem-reports
diff options
context:
space:
mode:
authorskygo <skygo@unknown>2012-09-08 16:46:12 +0000
committerskygo <skygo@unknown>2012-09-08 16:46:12 +0000
commit57b6bb091a33f095f951d1ee558c81234c54eb14 (patch)
treeb6f2598aebb7654b4362da4279b18cff0d0c9f9d /archiva-modules/plugins/problem-reports
parentf52bade117210719e138910be18fd2001ffd25a2 (diff)
downloadarchiva-57b6bb091a33f095f951d1ee558c81234c54eb14.tar.gz
archiva-57b6bb091a33f095f951d1ee558c81234c54eb14.zip
dirtie context for unit tests Problem Reporting Plugin
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1382328 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins/problem-reports')
-rw-r--r--archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java b/archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java
index 03b827a7e..66819225a 100644
--- a/archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java
+++ b/archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java
@@ -46,10 +46,12 @@ import java.util.Date;
import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner;
import static org.mockito.Mockito.*;
+import org.springframework.test.annotation.DirtiesContext;
@SuppressWarnings( { "ThrowableInstanceNeverThrown" } )
@RunWith( ArchivaSpringJUnit4ClassRunner.class )
@ContextConfiguration( locations = { "classpath*:/META-INF/spring-context.xml", "classpath:/spring-context.xml" } )
+@DirtiesContext( classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD )
public class DuplicateArtifactsConsumerTest
extends TestCase
{
@@ -85,6 +87,7 @@ public class DuplicateArtifactsConsumerTest
@Before
+ @Override
public void setUp()
throws Exception
{