Context.current.set(new Context(1L, reqHeader, req, session, flash, args));
}
protected void setHttpContext(JsonNode requestBody) {
RequestHeader reqHeader = mock(RequestHeader.class);
Request req = mock(Request.class);
if (requestBody != null) {
RequestBody reqBody = mock(RequestBody.class);
when(req.body()).thenReturn(reqBody);
when(reqBody.asJson()).thenReturn(requestBody);
}
Map<String, String> session = new HashMap<String, String>();
Map<String, String> flash = new HashMap<String, String>();
Map<String, Object> args = new HashMap<String, Object>();