Skip to content
Snippets Groups Projects
Commit 2284a4f0 authored by florian's avatar florian
Browse files

TST: Add Test for warnings

parent 5e17247b
No related branches found
No related tags found
1 merge request!3TST: Add Tests for insert and delete
Pipeline #11096 passed
This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
......@@ -116,6 +116,10 @@ TEST(test_transaction, insert_delete) {
const auto &new_entity = insert_result_set.GetEntity();
EXPECT_FALSE(new_entity.GetId().empty());
EXPECT_FALSE(new_entity.HasErrors());
// Should have a warning since it has no properties
EXPECT_TRUE(new_entity.HasWarnings());
EXPECT_EQ(new_entity.GetWarnings().Size(), 1);
EXPECT_EQ(new_entity.GetWarnings().At(0).GetCode(), MessageCode::ENTITY_HAS_NO_PROPERTIES);
auto delete_transaction(connection->CreateTransaction());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment