src/test/java/edu/ucla/library/iiif/auth/handlers/StatusHandlerIT.java
@Test
    public void testGetStatus(final Vertx aVertx, final VertxTestContext aContext) {
        final HttpRequest<?> getStatus = myWebClient.get(myPort, TestConstants.INADDR_ANY, GET_STATUS_PATH);

        getStatus.send().onSuccess(response -> {
            assertEquals(HTTP.OK, response.statusCode());
            assertEquals(MediaType.APPLICATION_JSON.toString(), response.headers().get(HttpHeaders.CONTENT_TYPE));

            aContext.completeNow();
        }).onFailure(aContext::failNow);
    }
/**
     * Tests the status handler.
     *
     * @param aVertx A Vert.x instance
     * @param aContext A test context
     */
Tests the status handler.
@param aVertx A Vert.x instance
@param aContext A test context
Tests the status handler . @param aVertx A Vert . x instance @param aContext A test context
@Test
    public void testGetStatus(final Vertx aVertx, final VertxTestContext aContext) {
        final HttpRequest<?> getStatus = myWebClient.get(myPort, TestConstants.INADDR_ANY, GET_STATUS_PATH);
        getStatus.send().onSuccess(response -> {
            assertEquals(HTTP.OK, response.statusCode());
            assertEquals(MediaType.APPLICATION_JSON.toString(), response.headers().get(HttpHeaders.CONTENT_TYPE));
            aContext.completeNow();
        }).onFailure(aContext::failNow);
    }
@ Test public void testGetStatus ( final Vertx aVertx , final VertxTestContext aContext ) { final HttpRequest < ? > getStatus = myWebClient . get ( myPort , TestConstants . INADDR_ANY , GET_STATUS_PATH ) ; getStatus . send ( ) . onSuccess ( response -> { assertEquals ( HTTP . OK , response . statusCode ( ) ) ; assertEquals ( MediaType . APPLICATION_JSON . toString ( ) , response . headers ( ) . get ( HttpHeaders . CONTENT_TYPE ) ) ; aContext . completeNow ( ) ; } ) . onFailure ( aContext :: failNow ) ; }
Tests the status handler.
Tests the status handler .