From abe668113d11f69328191c424956ef869ae482d0 Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Wed, 17 Nov 2021 17:43:53 +0100 Subject: [PATCH] Update tests --- test/test_query_retrieve.m | 4 ++-- test/test_transaction.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_query_retrieve.m b/test/test_query_retrieve.m index eb4edc0..057eefe 100644 --- a/test/test_query_retrieve.m +++ b/test/test_query_retrieve.m @@ -54,8 +54,8 @@ function test_connection() assertExceptionThrown(@non_existing_connection, "16"); end expected_msg = ... - strjoin({"maox_info: The ConnectionManager does not know any connection of this name.", ... - "No connection named 'does-not-exist' present."}, "\n"); + strjoin({"maox_info: Either there is no connection of the given name or the given connection has a faulty configuration", ... + "Error with the connection named 'does-not-exist': The connection 'does-not-exist' has not been defined."}, "\n"); assertEqual(lasterror().message, expected_msg); end diff --git a/test/test_transaction.m b/test/test_transaction.m index 31de63b..7fb3a14 100644 --- a/test/test_transaction.m +++ b/test/test_transaction.m @@ -64,7 +64,7 @@ function test_insert_entity() assertFalse(inserted{1}.has_errors(), print_messages(inserted{1}.get_errors(), "error")); assertTrue(inserted{1}.has_warnings(), print_messages(inserted{1}.get_warnings(), "warning")); assertEqual(numel(inserted{1}.get_warnings()), 1); - assertTrue(isequal(inserted{1}.get_warnings(){1}.description, "Entity has no unit."), ... + assertTrue(isequal(inserted{1}.get_warnings(){1}.description, "Property has no unit."), ... inserted{1}.get_warnings(){1}.description); assertFalse(inserted{1}.has_infos(), print_messages(inserted{1}.get_infos(), "info")); P1_id = inserted{1}.id; -- GitLab