Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add tests for null edge cases for StringUtils
  • Loading branch information
chingor13 committed Jan 4, 2019
commit 58e4368306a76002269e0962a80a098f1aeb6d4c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ public void testToBytesUtf8() {
Assert.assertArrayEquals(SAMPLE_UTF8, StringUtils.getBytesUtf8(SAMPLE));
}

public void testToBytesUtf8Null() {
assertNull(StringUtils.getBytesUtf8(null));
}

public void testFromBytesUtf8() {
assertEquals(SAMPLE, StringUtils.newStringUtf8(SAMPLE_UTF8));
}

public void testFromBytesUtf8Null() {
assertNull(StringUtils.newStringUtf8(null));
}
}