/** * Test method for {@link edu.ltu.stringreporter.StringReporter#getUniqueWords(java.lang.String)} * . */ @Test public void testGetUniqueWords() { String file = "one two three.\n\"One, two, three!\""; ArrayList<String> WordslistTestExpected = new ArrayList<String>(); WordslistTestExpected.add("one"); WordslistTestExpected.add("three"); WordslistTestExpected.add("two"); // Tests that words are returned and in correct order ArrayList<String> WordslistTest = StringReporter.getUniqueWords(file); AssertJUnit.assertEquals(WordslistTestExpected, WordslistTest); }