/** * Returns the names of all products currently managed. * * @return an array containing the names, never <code>null</code>, but the array can have zero length */ public String[] getProductNames() { return productList.getNames(); }
/** * Returns the names of all products currently managed. * * @return an array containing the names, never <code>null</code>, but the array can have zero length */ public String[] getNodeNames() { return nodeList.getNames(); }
public void testGetNames() { addAllNodes(); String[] names = _nodeList.getNames(); assertEquals(names[0], "attribute1"); assertEquals(names[1], "attribute2"); assertEquals(names[2], "attribute3"); assertEquals(names[3], "attribute4"); removeAllNodes(); }