Skip to content

Commit

Permalink
feat: update lambda expression
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Nov 19, 2023
1 parent 4cf3a8b commit 929d712
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ class ColumnDeleteQueryTest {

@Test
void shouldBuilderThrownException() {
assertThrows(NullPointerException.class, () -> {
ColumnDeleteQuery.builder(new String[]{null});
});
assertThrows(NullPointerException.class, () -> ColumnDeleteQuery.builder(new String[]{null}));
}

@ParameterizedTest(name = "{0} passed to build method then a valid builder should be returned")
Expand All @@ -46,9 +44,7 @@ void shouldBuildReturnsAValidBuilder(String scenario, String[] documents) {

@Test
void shouldDeleteThrownException() {
assertThrows(NullPointerException.class, () -> {
ColumnDeleteQuery.delete(new String[]{null});
});
assertThrows(NullPointerException.class, () -> ColumnDeleteQuery.delete(new String[]{null}));
}

@ParameterizedTest(name = "{0} passed to delete method then a valid builder should be returned")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ class ColumnTest {

@Test
void shouldReturnNameWhenNameIsNull() {
Assertions.assertThrows(NullPointerException.class, () -> {
Column.of(null, DEFAULT_VALUE);
});
Assertions.assertThrows(NullPointerException.class, () -> Column.of(null, DEFAULT_VALUE));
}

@Test
Expand Down

0 comments on commit 929d712

Please sign in to comment.