Merge pull request #5767 from eugenp/Issue-5765

Added @DirtiesContext to SpringContextIntegrationTest
This commit is contained in:
Eric Martin 2018-11-23 23:46:20 -06:00 committed by GitHub
commit d266250ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -3,12 +3,14 @@ package org.baeldung;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.context.junit4.SpringRunner;
import com.baeldung.SpringJenkinsPipelineApplication; import com.baeldung.SpringJenkinsPipelineApplication;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = SpringJenkinsPipelineApplication.class) @SpringBootTest(classes = SpringJenkinsPipelineApplication.class)
@DirtiesContext
public class SpringContextIntegrationTest { public class SpringContextIntegrationTest {
@Test @Test