Skip to content

Commit

Permalink
Fix test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Hai Yan <[email protected]>
  • Loading branch information
oeyh committed Feb 13, 2024
1 parent 7e7b3a3 commit ce3aecb
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ void testPutAndGet_withStrings(final String key) {
assertThat(result, is(equalTo(value)));
}

@Test
public void testPutKeyCannotBeEmptyString() {
Throwable exception = assertThrows(IllegalArgumentException.class, () -> event.put("", "value"));
assertThat(exception.getMessage(), containsStringIgnoringCase("key cannot be an empty string"));
}

@Test
public void testPutAndGet_withMultLevelKey() {
final String key = "foo/bar";
Expand Down

0 comments on commit ce3aecb

Please sign in to comment.