This patch adds a failure message for the isTableCellFilled SWTbot
condition to tell what text was in the cell, if any and what was
expected
Change-Id: I8a3a8290af9a5a37c08ecf48cece6d67b1c96f44
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/84609
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
}
return false;
}
+
+ @Override
+ public String getFailureMessage() {
+ String cell = table.cell(row, column);
+ if (cell == null) {
+ return NLS.bind("Cell absent, expected: {0}", content);
+ }
+ return NLS.bind("Cell content: {0} expected: {1}", cell, content);
+ }
};
}