use of core.framework.web.CookieSpec in project core-ng-project by neowu.
the class ResponseHandlerTest method cookie.
@Test
void cookie() {
CookieImpl cookie = responseHandler.cookie(new CookieSpec("test").secure(), "1=2");
assertEquals("test", cookie.getName());
assertEquals("1%3D2", cookie.getValue());
}
Aggregations