src/test/java/edu/ucla/library/iiif/auth/verticles/AbstractHauthTest.java
protected Future<Void> undeployVerticle(final Vertx aVertx, final String aVerticleName) {
        return aVertx.sharedData().getLocalAsyncMap(MainVerticle.VERTICLES_MAP).compose(map -> {
            return map.get(aVerticleName);
        }).compose(deploymentID -> {
            return aVertx.undeploy(deploymentID.toString()).onSuccess(result -> {
                getLogger().debug(MessageCodes.AUTH_002, aVerticleName, deploymentID);
            });
        });
    }
/**
     * Undeploy a verticle so that a test can swap in a mock.
     *
     * @param aVertx A Vert.x instance
     * @param aVerticleName The name of the verticle to undeploy
     * @return A future removal of the verticle
     */
Undeploy a verticle so that a test can swap in a mock.
@param aVertx A Vert.x instance
@param aVerticleName The name of the verticle to undeploy
@return A future removal of the verticle
Undeploy a verticle so that a test can swap in a mock . @param aVertx A Vert . x instance @param aVerticleName The name of the verticle to undeploy @return A future removal of the verticle
protected Future<Void> undeployVerticle(final Vertx aVertx, final String aVerticleName) {
        return aVertx.sharedData().getLocalAsyncMap(MainVerticle.VERTICLES_MAP).compose(map -> {
            return map.get(aVerticleName);
        }).compose(deploymentID -> {
            return aVertx.undeploy(deploymentID.toString()).onSuccess(result -> {
                getLogger().debug(MessageCodes.AUTH_002, aVerticleName, deploymentID);
            });
        });
    }
protected Future < Void > undeployVerticle ( final Vertx aVertx , final String aVerticleName ) { return aVertx . sharedData ( ) . getLocalAsyncMap ( MainVerticle . VERTICLES_MAP ) . compose ( map -> { return map . get ( aVerticleName ) ; } ) . compose ( deploymentID -> { return aVertx . undeploy ( deploymentID . toString ( ) ) . onSuccess ( result -> { getLogger ( ) . debug ( MessageCodes . AUTH_002 , aVerticleName , deploymentID ) ; } ) ; } ) ; }
Undeploy a verticle so that a test can swap in a mock.
Undeploy a verticle so that a test can swap in a mock .