@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={
"file:WebRoot/WEB-INF/applicationContext-common.xml",
"file:WebRoot/WEB-INF/applicationContext-action.xml",
"file:WebRoot/WEB-INF/applicationContext-dao.xml",
"file:WebRoot/WEB-INF/applicationContext-service.xml"})
public class BaseTestCase {
}
public class DocumentImpl extends BaseTestCase{
@Autowired
private IUserService userService;
..................................
..................................
}
@Test
public void test(){
}
junit运行web测试
最新推荐文章于 2020-07-10 00:33:54 发布