Skip to content

Commit

Permalink
Adding final to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashwin Tumma committed Dec 31, 2024
1 parent 5510336 commit 3235f9e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ public void testFileSessionCredentials()
String filePath = "/path/to/credentials";
properties.put(PROPERTY_PREFIX + ".fileSessionCredentials", filePath);

Injector injector = createInjector();
AWSCredentialsConfig config = injector.getInstance(AWSCredentialsConfig.class);
final Injector injector = createInjector();
final AWSCredentialsConfig config = injector.getInstance(AWSCredentialsConfig.class);

Assert.assertEquals(filePath, config.getFileSessionCredentials());
}
Expand All @@ -132,8 +132,8 @@ public void testMixedConfiguration() throws Exception
properties.put(PROPERTY_PREFIX + ".secretKey", SOME_SECRET + "2");
properties.put(PROPERTY_PREFIX + ".fileSessionCredentials", "/path/to/credentials");

Injector injector = createInjector();
AWSCredentialsConfig config = injector.getInstance(AWSCredentialsConfig.class);
final Injector injector = createInjector();
final AWSCredentialsConfig config = injector.getInstance(AWSCredentialsConfig.class);

Assert.assertEquals(SOME_SECRET, config.getAccessKey().getPassword());
Assert.assertEquals(SOME_SECRET + "2", config.getSecretKey().getPassword());
Expand Down

0 comments on commit 3235f9e

Please sign in to comment.