类的使用
cn.taketoday.mock.web.MockHttpSession
使用MockHttpSession的程序包
程序包
说明
Server-side support for testing Web MVC applications with
MockMvc
and HtmlUnit.Contains built-in
RequestBuilder
implementations.-
cn.taketoday.test.web.servlet.htmlunit中MockHttpSession的使用
修饰符和类型类说明private final classAn extension toMockHttpSessionthat ensures whenHtmlUnitRequestBuilder.HtmlUnitMockHttpSession.invalidate()is called that theHttpSessionis removed from the managed sessions.修饰符和类型字段说明private final Map<String,MockHttpSession> HtmlUnitRequestBuilder.sessionsprivate final Map<String,MockHttpSession> MockMvcWebConnection.sessions修饰符和类型方法说明private MockHttpSessionHtmlUnitRequestBuilder.httpSession(MockHttpServletRequest request, String sessionid) 类型变量类型为MockHttpSession的cn.taketoday.test.web.servlet.htmlunit中的构造器参数限定符构造器说明HtmlUnitRequestBuilder(Map<String, MockHttpSession> sessions, org.htmlunit.WebClient webClient, org.htmlunit.WebRequest webRequest) Construct a newHtmlUnitRequestBuilder. -
cn.taketoday.test.web.servlet.request中MockHttpSession的使用
修饰符和类型方法说明MockHttpServletRequestBuilder.session(MockHttpSession session) Set the HTTP session to use, possibly re-used across requests.