Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AmazonS3Exception (0.19 sec)

  1. platforms/software/resources-s3/src/test/groovy/org/gradle/internal/resource/transport/aws/s3/S3ClientTest.groovy

            URI uri = new URI("https://somehost/file.txt")
            S3Client s3Client = new S3Client(amazonS3Client, s3ConnectionProperties)
            AmazonS3Exception amazonS3Exception = new AmazonS3Exception("test exception")
            amazonS3Client.getObject(_) >> { throw amazonS3Exception }
    
            when:
            s3Client.getMetaData(uri)
            then:
            def ex = thrown(ResourceException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top