Search in sources :

Example 1 with Cookie

use of io.vertx.ext.web.Cookie in project java-chassis by ServiceComb.

the class TestRestVertxHttpRequest method testGetCookieParam.

@Test
public void testGetCookieParam() {
    Cookie cookie = Mockito.mock(Cookie.class);
    RoutingContext context = Mockito.mock(RoutingContext.class);
    Deencapsulation.setField(instance, "context", context);
    Mockito.when(context.getCookie("key")).thenReturn(cookie);
    Assert.assertNull(instance.getCookieParam("key"));
}
Also used : Cookie(io.vertx.ext.web.Cookie) RoutingContext(io.vertx.ext.web.RoutingContext) Test(org.junit.Test)

Aggregations

Cookie (io.vertx.ext.web.Cookie)1 RoutingContext (io.vertx.ext.web.RoutingContext)1 Test (org.junit.Test)1