From a Table, I get list of String’s and would like to check that when val != "A", a string "x" exists in the list of table:
for (int i = 0; i < NbRow; j++)
{
if (val[i] == "A")
{
assertFalse("");
}
else
{
list.add(myTable.getValue(j, 0));
//need to check here the string exists in the list using assertTrue
}
}
How do I check that string X exists using assertion?
As an alternative:
[Edit]
And if you like so:
can be written as: