In my test case, I get an integer value:
int val = getXXX();
Then, I would like to check if val
either equals to 3 or equals to 5 which is OK in either case. So, I did:
assertTrue(val == 3 || val==5);
I run my test, the log shows val
is 5, but my above assertion code failed with AssertionFailedError. Seems I can not use assertTrue(...)
in this way, then, how to check true for OR condition?