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
This commit is contained in:
skygo 2012-09-08 16:46:12 +00:00
parent f52bade117
commit 57b6bb091a
1 changed files with 3 additions and 0 deletions

View 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
{