This commit is contained in:
parent
78730bc69f
commit
d1fdad7cf9
|
@ -6,6 +6,7 @@ import org.mockito.ArgumentCaptor;
|
|||
import java.util.Set;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
import static org.mockito.Mockito.doNothing;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
@ -36,6 +37,8 @@ class CategoryCommandsTest {
|
|||
var expected =
|
||||
"Available Categories:" + System.lineSeparator() + "funStuff" + System.lineSeparator() + "workStuff";
|
||||
|
||||
assertEquals(expected, returnValue);
|
||||
var expectedDifferentOrder =
|
||||
"Available Categories:" + System.lineSeparator() + "workStuff" + System.lineSeparator() + "funStuff";
|
||||
assertTrue(expected.equals(returnValue) || expectedDifferentOrder.equals(returnValue));
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue