Skip to content

Commit

Permalink
chore: improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Sep 7, 2021
1 parent 566e94b commit cf7d217
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client-utils/src/test/java/com/influxdb/ArgumentsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ void checkOneCharStringLarge() {

@Test
void checkNotNull() {
Arguments.checkNotNull("value", "property");
}

@Test
void checkNotNullFail() {
Assertions.assertThatThrownBy(() -> Arguments.checkNotNull(null, "property"))
.isInstanceOf(NullPointerException.class)
.hasMessage("Expecting a not null reference for property");
Expand Down

0 comments on commit cf7d217

Please sign in to comment.