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"));
}
Aggregations