Added @DirtiesContext to SpringContextIntegrationTest

This commit is contained in:
eric-martin 2018-11-23 23:41:00 -06:00
parent 2b317d1b1b
commit 3d945c079a
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