src/test/java/edu/ucla/library/bucketeer/ImageUploadKakaduIT.java
@Test
    public void confirmLoadImageHandlerFailsWithInvalideFilepath(final TestContext aContext) {
        Assume.assumeNotNull(System.getProperty(TestConstants.BUCKETEER_VERSION));

        final String filePath = "/12345/this-file-does-not-exist.tiff";
        final WebClient webClient = WebClient.create(myVertx);
        final Async asyncTask = aContext.async();

        // Tests loadImage path from our OpenAPI YAML file returns an error response when given incomplete data
        webClient.get(PORT, Constants.UNSPECIFIED_HOST, filePath).expect(SC_BAD_REQUEST).send(handler -> {
            TestUtils.complete(asyncTask);
        });
    }
/**
     * Confirm that LoadImageHander fails if we provide and invalid filePath.
     *
     * @param aContext A testing context
     */
Confirm that LoadImageHander fails if we provide and invalid filePath.
@param aContext A testing context
Confirm that LoadImageHander fails if we provide and invalid filePath . @param aContext A testing context
@Test
    public void confirmLoadImageHandlerFailsWithInvalideFilepath(final TestContext aContext) {
        Assume.assumeNotNull(System.getProperty(TestConstants.BUCKETEER_VERSION));
        final String filePath = "/12345/this-file-does-not-exist.tiff";
        final WebClient webClient = WebClient.create(myVertx);
        final Async asyncTask = aContext.async();
        webClient.get(PORT, Constants.UNSPECIFIED_HOST, filePath).expect(SC_BAD_REQUEST).send(handler -> {
            TestUtils.complete(asyncTask);
        });
    }
@ Test public void confirmLoadImageHandlerFailsWithInvalideFilepath ( final TestContext aContext ) { Assume . assumeNotNull ( System . getProperty ( TestConstants . BUCKETEER_VERSION ) ) ; final String filePath = "/12345/this-file-does-not-exist.tiff" ; final WebClient webClient = WebClient . create ( myVertx ) ; final Async asyncTask = aContext . async ( ) ; webClient . get ( PORT , Constants . UNSPECIFIED_HOST , filePath ) . expect ( SC_BAD_REQUEST ) . send ( handler -> { TestUtils . complete ( asyncTask ) ; } ) ; }
Confirm that LoadImageHander fails if we provide and invalid filePath.
Confirm that LoadImageHander fails if we provide and invalid filePath .
// Tests loadImage path from our OpenAPI YAML file returns an error response when given incomplete data