fix casing within AwsCredentialsProviderPropertyValueDecoderTest
This commit is contained in:
parent
036952656f
commit
58aa4ebae7
1 changed files with 5 additions and 5 deletions
|
|
@ -34,7 +34,7 @@ import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertNotNull;
|
import static org.junit.Assert.assertNotNull;
|
||||||
import static org.junit.Assert.assertThat;
|
import static org.junit.Assert.assertThat;
|
||||||
|
|
||||||
public class AWSCredentialsProviderPropertyValueDecoderTest {
|
public class AwsCredentialsProviderPropertyValueDecoderTest {
|
||||||
|
|
||||||
private static final String TEST_ACCESS_KEY_ID = "123";
|
private static final String TEST_ACCESS_KEY_ID = "123";
|
||||||
private static final String TEST_SECRET_KEY = "456";
|
private static final String TEST_SECRET_KEY = "456";
|
||||||
|
|
@ -45,13 +45,13 @@ public class AWSCredentialsProviderPropertyValueDecoderTest {
|
||||||
private final AwsCredentialsProviderPropertyValueDecoder decoder = new AwsCredentialsProviderPropertyValueDecoder();
|
private final AwsCredentialsProviderPropertyValueDecoder decoder = new AwsCredentialsProviderPropertyValueDecoder();
|
||||||
|
|
||||||
@ToString
|
@ToString
|
||||||
private static class AWSCredentialsMatcher extends TypeSafeDiagnosingMatcher<AwsCredentialsProvider> {
|
private static class AwsCredentialsMatcher extends TypeSafeDiagnosingMatcher<AwsCredentialsProvider> {
|
||||||
|
|
||||||
private final Matcher<String> akidMatcher;
|
private final Matcher<String> akidMatcher;
|
||||||
private final Matcher<String> secretMatcher;
|
private final Matcher<String> secretMatcher;
|
||||||
private final Matcher<Class<?>> classMatcher;
|
private final Matcher<Class<?>> classMatcher;
|
||||||
|
|
||||||
public AWSCredentialsMatcher(String akid, String secret) {
|
public AwsCredentialsMatcher(String akid, String secret) {
|
||||||
this.akidMatcher = equalTo(akid);
|
this.akidMatcher = equalTo(akid);
|
||||||
this.secretMatcher = equalTo(secret);
|
this.secretMatcher = equalTo(secret);
|
||||||
this.classMatcher = instanceOf(AwsCredentialsProviderChain.class);
|
this.classMatcher = instanceOf(AwsCredentialsProviderChain.class);
|
||||||
|
|
@ -86,8 +86,8 @@ public class AWSCredentialsProviderPropertyValueDecoderTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static AWSCredentialsMatcher hasCredentials(String akid, String secret) {
|
private static AwsCredentialsMatcher hasCredentials(String akid, String secret) {
|
||||||
return new AWSCredentialsMatcher(akid, secret);
|
return new AwsCredentialsMatcher(akid, secret);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
Loading…
Reference in a new issue