Fix unit tests

This commit is contained in:
Stefan Niedermann 2020-06-10 18:15:22 +02:00
parent f823e48c7c
commit 0cfcb31f7d

View file

@ -63,9 +63,9 @@ public class NoteUtilTest extends TestCase {
}
public void testGenerateNoteExcerpt() {
assertEquals("", NoteUtil.generateNoteExcerpt("Test", false));
assertEquals("Foo", NoteUtil.generateNoteExcerpt("Test\nFoo", false));
assertEquals("Foo Bar", NoteUtil.generateNoteExcerpt("Test\nFoo\nBar", false));
assertEquals("", NoteUtil.generateNoteExcerpt("", false));
assertEquals("", NoteUtil.generateNoteExcerpt("Test"));
assertEquals("Foo", NoteUtil.generateNoteExcerpt("Test\nFoo"));
assertEquals("Foo Bar", NoteUtil.generateNoteExcerpt("Test\nFoo\nBar"));
assertEquals("", NoteUtil.generateNoteExcerpt(""));
}
}