Skip to content

Instantly share code, notes, and snippets.

@awilmore
Created May 22, 2012 11:19
Show Gist options
  • Save awilmore/2768436 to your computer and use it in GitHub Desktop.
Save awilmore/2768436 to your computer and use it in GitHub Desktop.
Spring JUnit Runner Using Test Context
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({
"/spring/applicationContext.xml",
"/springtest/applicationContext-testDataSource.xml"})
public class SpringJUnitRunnerExampleTest {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment