use of com.hazelcast.aws.AWSClient in project hazelcast by hazelcast.
the class AwsAddressTranslatorTest method setUp.
@Before
public void setUp() throws Exception {
privateAddress = new Address("127.0.0.1", 5701);
publicAddress = new Address("192.168.0.1", 5701);
awsClient = mock(AWSClient.class);
when(awsClient.getAddresses()).thenReturn(lookup);
config = new ClientAwsConfig();
config.setIamRole("anyRole");
ILogger logger = Logger.getLogger(AwsAddressTranslatorTest.class);
loggingService = mock(LoggingService.class);
when(loggingService.getLogger(eq(AwsAddressTranslator.class))).thenReturn(logger);
translator = new AwsAddressTranslator(config, loggingService);
}
Aggregations