]> source.dussan.org Git - archiva.git/commitdiff
repository scanning test fix for idependance
authorskygo <skygo@unknown>
Sat, 8 Sep 2012 11:43:10 +0000 (11:43 +0000)
committerskygo <skygo@unknown>
Sat, 8 Sep 2012 11:43:10 +0000 (11:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1382285 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/scheduler/repository/ArchivaRepositoryScanningTaskExecutorAbstractTest.java

index adb1c36de177a70d60b8f29cc0f15d04e8fa85c3..554287c83c504a131603e8dd20f034cf0e695d13 100644 (file)
@@ -40,6 +40,7 @@ import java.util.List;
 import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner;
 
 import static org.mockito.Mockito.mock;
+import org.springframework.test.annotation.DirtiesContext;
 
 /**
  * ArchivaRepositoryScanningTaskExecutorPhase1Test
@@ -48,6 +49,7 @@ import static org.mockito.Mockito.mock;
  */
 @RunWith( ArchivaSpringJUnit4ClassRunner.class )
 @ContextConfiguration( locations = { "classpath*:/META-INF/spring-context.xml", "classpath:/spring-context.xml" } )
+@DirtiesContext( classMode= DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD )
 public abstract class ArchivaRepositoryScanningTaskExecutorAbstractTest
     extends TestCase
 {