InventoryReader implements DataTreeChangeListener<DataObject> { public HashMap<String, NodeConnectorRef> getControllerSwitchConnectors() { return controllerSwitchConnectors; } InventoryReader(DataBroker dataService); void setRefreshData(boolean refreshData); HashMap<String, NodeConnectorRef> getControllerSwitchConnectors(); HashMap<String, List<NodeConnectorRef>> getSwitchNodeConnectors(); @Override void onDataTreeChanged(Collection<DataTreeModification<DataObject>> changes); void close(); void readInventory(); NodeConnectorRef getNodeConnector(InstanceIdentifier<Node> nodeInsId, MacAddress macAddress);  }
@Test public void testGetControllerSwitchConnectors() throws Exception { assertEquals(0, inventoryReader.getControllerSwitchConnectors().size()); }