You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "ygerzhedovich (via GitHub)" <gi...@apache.org> on 2024/05/09 08:50:00 UTC
Re: [PR] IGNITE-22040: KeyValue/RecordView. Improve error messages for constraint violation errors. [ignite-3]
ygerzhedovich commented on code in PR #3619:
URL: https://github.com/apache/ignite-3/pull/3619#discussion_r1595164986
##########
modules/client/src/test/java/org/apache/ignite/client/ClientKeyValueViewTest.java:
##########
@@ -512,7 +512,7 @@ public void testNonNullableColumnWithDefaultValueSetNullThrowsException() {
var ex = assertThrows(IgniteException.class, () -> pojoView.put(null, 1, pojo));
- assertTrue(ex.getMessage().contains("null was passed, but column is not nullable"), ex.getMessage());
+ assertThat(ex.getMessage(), containsString("Column 'STRNONNULL' does not allow NULLs"));
Review Comment:
maybe better to use IgniteTestUtils.assertThrows
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org