I am doing some validation using simple Java, I am coding as below
if (something.equals("ABC"))
expectedvalue = "TEST1";
else if(something.equals("DEF"))
expectedvalue = "TEST5";
// and so on....
My issue here is that, if something.equals("ABC")
, expectedvalue
can be any of these two values -> "TEST1"
or "TEST2"
During validation, in the output, I do not get error if I give "TEST1"
for expectedvalue
. It should do the same even if I give "TEST2"
. How to do that?