src/test/java/edu/ucla/library/bucketeer/utils/LargeImageFfOnT.java
@Test
    public void testStatus(final TestContext aContext) {
        final WebClient webClient = WebClient.create(myTestContext.vertx());
        final int port = Integer.parseInt(System.getProperty(Config.HTTP_PORT));
        final Async asyncTask = aContext.async();

        webClient.get(port, Constants.UNSPECIFIED_HOST, "/status").send(statusCheck -> {
            if (statusCheck.succeeded()) {
                final HttpResponse<Buffer> response = statusCheck.result();
                final JsonObject status = response.bodyAsJsonObject();
                final JsonObject features = status.getJsonObject(Features.FEATURES);

                aContext.assertEquals(status.getString(Constants.STATUS), "ok");
                aContext.assertEquals(true, features.getBoolean(Features.ENABLED, false));
                aContext.assertEquals(true, features.getBoolean(Features.LARGE_IMAGE_ROUTING, false));

                TestUtils.complete(asyncTask);
            } else {
                aContext.fail(statusCheck.cause());
            }
        });
    }
/**
     * Tests the status of the large image feature flag.
     *
     * @param aContext A test context
     */
Tests the status of the large image feature flag.
@param aContext A test context
Tests the status of the large image feature flag . @param aContext A test context
@Test
    public void testStatus(final TestContext aContext) {
        final WebClient webClient = WebClient.create(myTestContext.vertx());
        final int port = Integer.parseInt(System.getProperty(Config.HTTP_PORT));
        final Async asyncTask = aContext.async();
        webClient.get(port, Constants.UNSPECIFIED_HOST, "/status").send(statusCheck -> {
            if (statusCheck.succeeded()) {
                final HttpResponse<Buffer> response = statusCheck.result();
                final JsonObject status = response.bodyAsJsonObject();
                final JsonObject features = status.getJsonObject(Features.FEATURES);
                aContext.assertEquals(status.getString(Constants.STATUS), "ok");
                aContext.assertEquals(true, features.getBoolean(Features.ENABLED, false));
                aContext.assertEquals(true, features.getBoolean(Features.LARGE_IMAGE_ROUTING, false));
                TestUtils.complete(asyncTask);
            } else {
                aContext.fail(statusCheck.cause());
            }
        });
    }
@ Test public void testStatus ( final TestContext aContext ) { final WebClient webClient = WebClient . create ( myTestContext . vertx ( ) ) ; final int port = Integer . parseInt ( System . getProperty ( Config . HTTP_PORT ) ) ; final Async asyncTask = aContext . async ( ) ; webClient . get ( port , Constants . UNSPECIFIED_HOST , "/status" ) . send ( statusCheck -> { if ( statusCheck . succeeded ( ) ) { final HttpResponse < Buffer > response = statusCheck . result ( ) ; final JsonObject status = response . bodyAsJsonObject ( ) ; final JsonObject features = status . getJsonObject ( Features . FEATURES ) ; aContext . assertEquals ( status . getString ( Constants . STATUS ) , "ok" ) ; aContext . assertEquals ( true , features . getBoolean ( Features . ENABLED , false ) ) ; aContext . assertEquals ( true , features . getBoolean ( Features . LARGE_IMAGE_ROUTING , false ) ) ; TestUtils . complete ( asyncTask ) ; } else { aContext . fail ( statusCheck . cause ( ) ) ; } } ) ; }
Tests the status of the large image feature flag.
Tests the status of the large image feature flag .