use of cn.taketoday.mock.web.MockHttpSession in project today-infrastructure by TAKETODAY.
the class ClassPathBeanDefinitionScannerScopeIntegrationTests method setup.
@BeforeEach
void setup() {
MockHttpServletRequest oldRequestWithSession = new MockHttpServletRequest();
oldRequestWithSession.setSession(new MockHttpSession());
this.oldRequestAttributesWithSession = new ServletRequestContext(null, oldRequestWithSession, new MockHttpServletResponse());
MockHttpServletRequest newRequestWithSession = new MockHttpServletRequest();
newRequestWithSession.setSession(new MockHttpSession());
this.newRequestAttributesWithSession = new ServletRequestContext(null, newRequestWithSession, new MockHttpServletResponse());
}
use of cn.taketoday.mock.web.MockHttpSession in project today-framework by TAKETODAY.
the class ClassPathBeanDefinitionScannerScopeIntegrationTests method setup.
@BeforeEach
void setup() {
MockHttpServletRequest oldRequestWithSession = new MockHttpServletRequest();
oldRequestWithSession.setSession(new MockHttpSession());
this.oldRequestAttributesWithSession = new ServletRequestContext(null, oldRequestWithSession, new MockHttpServletResponse());
MockHttpServletRequest newRequestWithSession = new MockHttpServletRequest();
newRequestWithSession.setSession(new MockHttpSession());
this.newRequestAttributesWithSession = new ServletRequestContext(null, newRequestWithSession, new MockHttpServletResponse());
}
Aggregations