SafeDispatcherServletTests.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:cas4.0.x-server-wechat 作者:
@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.");
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号