{
prop.setDataSourceInfo("InventorySource");
prop.setCatalog("Inventory");
rest.setCubeName("Inventory");
//"nQuantity" is the First Measure in Inventory Cube
Assert.assertEquals("nQuantity",(new MeasureElement(null,(((port1.getMeasureList(rest,prop)).getElementsByTagName("row")).item(0)),rest,prop)).toString());
//System.out.println("From Test Meausure list : "+(new MeasureElement(null,(((port1.getMeasureList(rest,prop)).getElementsByTagName("row")).item(0)),rest,prop)).toString());
prop.setDataSourceInfo("FoodMartSource");
prop.setCatalog("FoodMart");
rest.setCubeName("Sales");
//"Unit Sales" is the First Measure in Sales Cube
Assert.assertEquals("Unit Sales",(new MeasureElement(null,(((port1.getMeasureList(rest,prop)).getElementsByTagName("row")).item(0)),rest,prop)).toString());
//System.out.println("From Test Meausure list : "+(new MeasureElement(null,(((port1.getMeasureList(rest,prop)).getElementsByTagName("row")).item(0)),rest,prop)).toString());
}
catch(Exception exc)
{
System.out.println("Error"+exc.getStackTrace());