Skip to content

Commit

Permalink
test: create scenario to update validation
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Sep 3, 2024
1 parent e8107ec commit edaf38a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,11 @@ void shouldReturnErrorWhenHaveParenthesis(String query) {
.isInstanceOf(UnsupportedOperationException.class);
}

@ParameterizedTest(name = "Should parser the query {0}")
@ValueSource(strings = {"UPDATE Coordinate SET x = :newX, y = y / :yDivisor WHERE id = :id"})
void shouldReturnErrorWhenHaveOperation(String query) {
Assertions.assertThatThrownBy(() ->updateProvider.apply(query))
.isInstanceOf(UnsupportedOperationException.class);
}

}

0 comments on commit edaf38a

Please sign in to comment.