diff --git a/jnosql-communication/jnosql-communication-query/src/test/java/org/eclipse/jnosql/communication/query/data/UpdateJakartaDataQueryProviderTest.java b/jnosql-communication/jnosql-communication-query/src/test/java/org/eclipse/jnosql/communication/query/data/UpdateJakartaDataQueryProviderTest.java index 4e5346278..991062fbb 100644 --- a/jnosql-communication/jnosql-communication-query/src/test/java/org/eclipse/jnosql/communication/query/data/UpdateJakartaDataQueryProviderTest.java +++ b/jnosql-communication/jnosql-communication-query/src/test/java/org/eclipse/jnosql/communication/query/data/UpdateJakartaDataQueryProviderTest.java @@ -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); + } + }