-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
There is no problem in the line
assertTrue(actualStringSplits.containsAll(Arrays.asList(expectedStringSplit1, expectedStringSplit2)));
But I believe you would enjoy to learn how to use Hamcrest and write something like:
assertThat(actualStringSplits, containsAll(Arrays.asList(expectedStringSplit1, expectedStringSplit2)));
Advantage: when the test fails, the message is much more descriptive about what went wrong.