Add before modes support for @IntegrationTest
Spring Framework 4.2 introduced support for before modes in `@DirtiesContext` Make sure that `@IntegrationTest` also support these new modes. Closes gh-3642
This commit is contained in:
parent
89c3d2ea12
commit
65efd1725f
|
|
@ -27,6 +27,7 @@ import org.springframework.core.env.Environment;
|
|||
import org.springframework.test.context.TestExecutionListeners;
|
||||
import org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener;
|
||||
import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;
|
||||
import org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener;
|
||||
import org.springframework.test.context.support.DirtiesContextTestExecutionListener;
|
||||
import org.springframework.test.context.transaction.TransactionalTestExecutionListener;
|
||||
|
||||
|
|
@ -48,6 +49,7 @@ import org.springframework.test.context.transaction.TransactionalTestExecutionLi
|
|||
// Leave out the ServletTestExecutionListener because it only deals with Mock* servlet
|
||||
// stuff. A real embedded application will not need the mocks.
|
||||
@TestExecutionListeners(listeners = { IntegrationTestPropertiesListener.class,
|
||||
DirtiesContextBeforeModesTestExecutionListener.class,
|
||||
DependencyInjectionTestExecutionListener.class,
|
||||
DirtiesContextTestExecutionListener.class,
|
||||
TransactionalTestExecutionListener.class, SqlScriptsTestExecutionListener.class })
|
||||
|
|
|
|||
Loading…
Reference in New Issue