mirror of https://github.com/apache/archiva.git
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:
parent
f52bade117
commit
57b6bb091a
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue