]> source.dussan.org Git - archiva.git/commitdiff
dirtie context for unit tests Problem Reporting Plugin
authorskygo <skygo@unknown>
Sat, 8 Sep 2012 16:46:12 +0000 (16:46 +0000)
committerskygo <skygo@unknown>
Sat, 8 Sep 2012 16:46:12 +0000 (16:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1382328 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/plugins/problem-reports/src/test/java/org/apache/archiva/reports/consumers/DuplicateArtifactsConsumerTest.java

index 03b827a7e2fee1b30f9039fe32cb456c2d533945..66819225a2413fcfcd2e6d68fc966bda45cad973 100644 (file)
@@ -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
     {