Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Tears down the test fixture.
- *
- * Called after every test case method.
- */
- @After
- public void tearDown()
- {
- stable.clear();
- }
- private void verifyAnyOrder(String expected)
- {
- String actual = outContent.toString(); // for debug purposes
- stdOut.println(actual);
- String[] actualStrings = actual.split(NEWLINE);
- String[] expectedStrings = expected.split(NEWLINE);
- int i = actualStrings.length;
- assertEquals(MAJOR_ERROR_MESSAGE, expectedStrings.length, i);
- Arrays.sort(actualStrings);
- Arrays.sort(expectedStrings);
- while (0 != i--)
- assertEquals(MINOR_ERROR_MESSAGE, expectedStrings[i], actualStrings[i]);
- } // end method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement