Case #1 使用 xml configuration
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(“file:WebContent/WEB-INF/applicationContext.xml”)
public class TestMyDAO {
}
Case#2 java based configuration
Case #1 使用 xml configuration
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(“file:WebContent/WEB-INF/applicationContext.xml”)
public class TestMyDAO {
}
Case#2 java based configuration