public class S3MockRule extends S3MockStarter implements org.junit.rules.TestRule
ClassRule:
@ClassRule
public static S3MockRule S3_MOCK_RULE = S3MockRule.builder().build();
private final AmazonS3 s3Client = S3_MOCK_RULE.createS3Client();
@Test
public void doSomethingWithS3() {
s3Client.createBucket("myBucket");
}
| Modifier and Type | Class and Description |
|---|---|
static class |
S3MockRule.Builder |
S3MockStarter.BaseBuilder<T extends S3MockStarter>properties, s3MockFileStore| Constructor and Description |
|---|
S3MockRule()
Creates an instance with the default configuration.
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
static S3MockRule.Builder |
builder() |
configureClientToIgnoreInvalidSslCertificates, createS3Client, createS3Client, createS3ClientV2, defaultProps, getEndpointCongiguration, getHttpPort, getPort, getServiceEndpoint, registerKMSKeyRef, start, stoppublic S3MockRule()
public static S3MockRule.Builder builder()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleCopyright © 2019 Adobe. All rights reserved.