MaxAttemptsResolver { public Integer maxAttempts() { return maxAttempts; } MaxAttemptsResolver(); @SdkTestInternalApi  MaxAttemptsResolver(AwsProfileFileLocationProvider configFileLocationProvider); Integer maxAttempts();  }
@Test public void differentCombinationOfConfigs_shouldResolveCorrectly() { if (testData.envVarValue != null) { ENVIRONMENT_VARIABLE_HELPER.set(AWS_MAX_ATTEMPTS_ENV_VAR, testData.envVarValue); } if (testData.systemProperty != null) { System.setProperty(AWS_MAX_ATTEMPTS_SYSTEM_PROPERTY, testData.systemProperty); } MaxAttemptsResolver resolver; if (testData.configFile != null) { resolver = new MaxAttemptsResolver(new TestProfileFileLocationProvider(testData.configFile, "/resources/retry/")); } else { resolver = new MaxAttemptsResolver(); } assertThat(resolver.maxAttempts(), equalTo(testData.expected)); }