src/test/java/edu/ucla/library/bucketeer/verticles/S3BucketVerticleTest.java
@After
    public void tearDown(final TestContext aContext) throws Exception {
        final Async async = aContext.async();

        myRunTestOnContextRule.vertx().close(result -> {
            if (!result.succeeded()) {
                final String message = LOGGER.getMessage(MessageCodes.BUCKETEER_015);

                LOGGER.error(message);
                aContext.fail(message);
            }

            // clean up our test files
            myAmazonS3.deleteObject(s3Bucket, myImageKey);

            TestUtils.complete(async);
        });
    }
/**
     * Tear down the testing environment.
     *
     * @param aContext A test context
     * @throws Exception If there is trouble closing down the Vert.x instance
     */
Tear down the testing environment.
@param aContext A test context
@throws Exception If there is trouble closing down the Vert.x instance
Tear down the testing environment . @param aContext A test context @throws Exception If there is trouble closing down the Vert . x instance
@After
    public void tearDown(final TestContext aContext) throws Exception {
        final Async async = aContext.async();
        myRunTestOnContextRule.vertx().close(result -> {
            if (!result.succeeded()) {
                final String message = LOGGER.getMessage(MessageCodes.BUCKETEER_015);
                LOGGER.error(message);
                aContext.fail(message);
            }
            myAmazonS3.deleteObject(s3Bucket, myImageKey);
            TestUtils.complete(async);
        });
    }
@ After public void tearDown ( final TestContext aContext ) throws Exception { final Async async = aContext . async ( ) ; myRunTestOnContextRule . vertx ( ) . close ( result -> { if ( ! result . succeeded ( ) ) { final String message = LOGGER . getMessage ( MessageCodes . BUCKETEER_015 ) ; LOGGER . error ( message ) ; aContext . fail ( message ) ; } myAmazonS3 . deleteObject ( s3Bucket , myImageKey ) ; TestUtils . complete ( async ) ; } ) ; }
Tear down the testing environment.
Tear down the testing environment .
// clean up our test files