Search in sources :

Example 1 with CookieSpec

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());
}
Also used : CookieImpl(io.undertow.server.handlers.CookieImpl) CookieSpec(core.framework.web.CookieSpec) Test(org.junit.jupiter.api.Test)

Aggregations

CookieSpec (core.framework.web.CookieSpec)1 CookieImpl (io.undertow.server.handlers.CookieImpl)1 Test (org.junit.jupiter.api.Test)1