package org.transgalactica.batch.salaire; import org.junit.runner.RunWith; import org.springframework.batch.test.StepScopeTestExecutionListener; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.TestExecutionListeners; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.support.DependencyInjectionTestExecutionListener; import org.transgalactica.batch.salaire.context.AppConfig; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = { AppConfig.class, TestConfig.class }) @TestExecutionListeners({ DependencyInjectionTestExecutionListener.class, StepScopeTestExecutionListener.class }) @ActiveProfiles("test") public abstract class AbstractBatchTest { }