tmf.swtbot: Add a failure message to 'isTableCellFilled'
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui.swtbot.tests / shared / org / eclipse / tracecompass / tmf / ui / swtbot / tests / shared / ConditionHelpers.java
index c1ecf95e428ac0d1ad9223fae29aea72e4ca820d..aa58f69fbfea8e74ffaabb75239412808083ac3c 100644 (file)
@@ -309,6 +309,15 @@ public final class ConditionHelpers {
                 }
                 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);
+            }
         };
     }
 
This page took 0.024336 seconds and 5 git commands to generate.