use of com.tvd12.ezyfoxserver.nio.builder.impl.EzyWebSocketServerCreator.HealthCheckServlet in project ezyfox-server by youngmonkeys.
the class EzyWebSocketServerCreatorTest method healthCheckServletTest.
@Test
public void healthCheckServletTest() {
// given
HealthCheckServlet sut = new HealthCheckServlet();
HttpServletRequest request = mock(HttpServletRequest.class);
HttpServletResponse response = mock(HttpServletResponse.class);
// when
MethodInvoker.create().object(sut).method("doGet").param(HttpServletRequest.class, request).param(HttpServletResponse.class, response).call();
// then
verify(response, times(1)).setStatus(200);
}
Aggregations