Mercurial > hg > thermostat
changeset 2270:393650aba589
Fix NoteIdsFinderTest
Reviewed-by: jaziz, omajid
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2016-April/018564.html
author | Andrew Azores <aazores@redhat.com> |
---|---|
date | Tue, 19 Apr 2016 15:45:06 -0400 |
parents | a35e691f9db4 |
children | 5c8c2771c1e7 |
files | notes/client-cli/src/test/java/com/redhat/thermostat/notes/client/cli/internal/NoteIdsFinderTest.java |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/notes/client-cli/src/test/java/com/redhat/thermostat/notes/client/cli/internal/NoteIdsFinderTest.java Tue Apr 19 13:28:24 2016 -0400 +++ b/notes/client-cli/src/test/java/com/redhat/thermostat/notes/client/cli/internal/NoteIdsFinderTest.java Tue Apr 19 15:45:06 2016 -0400 @@ -217,11 +217,9 @@ assertThat(in.length(), is(expected.length())); } - @Test + @Test(expected = NullPointerException.class) public void testTrimContentWithNullInput() { - String in = null; - String trimmed = NoteIdsFinder.trimContent(in); - assertThat(trimmed, is("")); + NoteIdsFinder.trimContent(null); } private static <T extends Note> List<CompletionInfo> convertNotesToInfos(Iterable<T> notes) {