* @param x The x position of the cell to check (starting at 0).
* @param y The y position of the cell to check (starting at 0).
* @param expected The expected value in the given cell.
*/
public static void assertDataSetValue(DataSet dataSet, DataSetFormatter formatter, int x, int y, String expected) {
DataColumn col = dataSet.getColumnByIndex(y);
String displayedValue = formatter.formatValueAt(dataSet, x, y);
if (!displayedValue.equals(expected)) {
fail("Data set value [" + x + "," + y + "] is different. " +
"Column=\"" + col.getId() + "\" " +
"Actual=\"" + displayedValue + "\" Expected=\"" + expected + "\"");
}
}