use of org.apache.camel.component.openstack.keystone.producer.RegionProducer in project camel by apache.
the class RegionProducerTest method setUp.
@Before
public void setUp() {
producer = new RegionProducer(endpoint, client);
when(regionService.create(any(Region.class))).thenReturn(testOSregion);
when(regionService.get(anyString())).thenReturn(testOSregion);
List<Region> getAllList = new ArrayList<>();
getAllList.add(testOSregion);
getAllList.add(testOSregion);
doReturn(getAllList).when(regionService).list();
dummyRegion = createRegion();
when(testOSregion.getDescription()).thenReturn(dummyRegion.getDescription());
}
Aggregations