@Test
public void testService() throws ServletException, IOException {
this.safeServlet.init(this.mockConfig);
ServletRequest mockRequest = new MockHttpServletRequest();
ServletResponse mockResponse = new MockHttpServletResponse();
try {
this.safeServlet.service(mockRequest, mockResponse);
} catch (final ApplicationContextException ace) {
// good, threw the exception we expected.
return;
}
fail("Should have thrown ApplicationContextException since init() failed.");
}
SafeDispatcherServletTests.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:cas4.0.x-server-wechat
作者:
评论列表
文章目录