I am trying to create a test for a method in my program. The methods, when working right, should give me the values 1 or 2 (BOTH ARE RIGHT).
How can test it with assertEquals? In other words, how can I tell JUnit to report the test as passed if the value the method returns is 1 or 2.
The problem is that I do not know a priori if it is 1 or 2, but everything else (3, 4....) would be wrong.