diff --git a/javav2/example_code/s3/src/test/java/TransferManagerTest.java b/javav2/example_code/s3/src/test/java/TransferManagerTest.java index 752400b1017..d74ef94c6d0 100644 --- a/javav2/example_code/s3/src/test/java/TransferManagerTest.java +++ b/javav2/example_code/s3/src/test/java/TransferManagerTest.java @@ -80,7 +80,7 @@ public void directoryUploadWorks(){ @Tag("IntegrationTest") public void directoryDownloadWorks(){ DownloadToDirectory download = new DownloadToDirectory(); - Integer numFilesFailedToDownload = download.downloadObjectsToDirectory(S3ClientFactory.transferManager, download.destinationPath, download.bucketName); + Integer numFilesFailedToDownload = download.downloadObjectsToDirectory(S3ClientFactory.transferManager, download.destinationPathURI, download.bucketName); Assertions.assertNotNull(numFilesFailedToDownload, "Bucket download failed to complete."); download.cleanUp(); }