Merge pull request #5767 from eugenp/Issue-5765
Added @DirtiesContext to SpringContextIntegrationTest
This commit is contained in:
commit
d266250ae0
|
@ -3,12 +3,14 @@ package org.baeldung;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.annotation.DirtiesContext;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import com.baeldung.SpringJenkinsPipelineApplication;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = SpringJenkinsPipelineApplication.class)
|
||||
@DirtiesContext
|
||||
public class SpringContextIntegrationTest {
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue