Skip to content
Snippets Groups Projects
Verified Commit abe66811 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Update tests

parent 54f5cdf4
No related branches found
No related tags found
No related merge requests found
Pipeline #16180 failed
...@@ -54,8 +54,8 @@ function test_connection() ...@@ -54,8 +54,8 @@ function test_connection()
assertExceptionThrown(@non_existing_connection, "16"); assertExceptionThrown(@non_existing_connection, "16");
end end
expected_msg = ... expected_msg = ...
strjoin({"maox_info: The ConnectionManager does not know any connection of this name.", ... strjoin({"maox_info: Either there is no connection of the given name or the given connection has a faulty configuration", ...
"No connection named 'does-not-exist' present."}, "\n"); "Error with the connection named 'does-not-exist': The connection 'does-not-exist' has not been defined."}, "\n");
assertEqual(lasterror().message, expected_msg); assertEqual(lasterror().message, expected_msg);
end end
......
...@@ -64,7 +64,7 @@ function test_insert_entity() ...@@ -64,7 +64,7 @@ function test_insert_entity()
assertFalse(inserted{1}.has_errors(), print_messages(inserted{1}.get_errors(), "error")); assertFalse(inserted{1}.has_errors(), print_messages(inserted{1}.get_errors(), "error"));
assertTrue(inserted{1}.has_warnings(), print_messages(inserted{1}.get_warnings(), "warning")); assertTrue(inserted{1}.has_warnings(), print_messages(inserted{1}.get_warnings(), "warning"));
assertEqual(numel(inserted{1}.get_warnings()), 1); 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); inserted{1}.get_warnings(){1}.description);
assertFalse(inserted{1}.has_infos(), print_messages(inserted{1}.get_infos(), "info")); assertFalse(inserted{1}.has_infos(), print_messages(inserted{1}.get_infos(), "info"));
P1_id = inserted{1}.id; P1_id = inserted{1}.id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment