use of com.vmware.flowgate.poweriqworker.model.Outlet in project flowgate by vmware.
the class SyncRealTimeDataJobTest method testGetValueUnits.
@Test
public void testGetValueUnits() {
Mockito.when(this.powerIQAPIClient.getPduByID(anyLong())).thenReturn(new Pdu());
Mockito.when(this.powerIQAPIClient.getOutlets(anyLong())).thenReturn(new ArrayList<Outlet>());
Map<String, String> pduInfoMap = new HashMap<String, String>();
pduInfoMap.put(FlowgateConstant.PDU_ID_FROM_POWERIQ, "123");
List<ValueUnit> valueUnits = powerIQService.getValueUnits(pduInfoMap, powerIQAPIClient, null);
TestCase.assertEquals(true, valueUnits.isEmpty());
}
Aggregations