Created
May 22, 2012 11:19
-
-
Save awilmore/2768436 to your computer and use it in GitHub Desktop.
Spring JUnit Runner Using Test Context
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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