Skip to content

Commit

Permalink
Merge pull request #553 from eclipse/should-exception-update
Browse files Browse the repository at this point in the history
Create scenario to update validation
  • Loading branch information
otaviojava authored Sep 3, 2024
2 parents e8107ec + edaf38a commit 9499786
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 9499786

Please sign in to comment.