use of com.amazonaws.services.simpledb.model.ListDomainsResult in project teiid by teiid.
the class SimpleDbAPIClassTest method getDomainsTest.
@Test
public void getDomainsTest() throws Exception {
ListDomainsResult listDomainResult = Mockito.mock(ListDomainsResult.class);
List<String> resultList = new ArrayList<String>();
resultList.add("Test");
resultList.add("Test1");
when(client.listDomains()).thenReturn(listDomainResult);
when(listDomainResult.getDomainNames()).thenReturn(resultList);
assertEquals(resultList, simpleDbApi.getDomains());
}
Aggregations