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

ENH: Add test for descriptions

parent bd035ce1
No related branches found
No related tags found
2 merge requests!9F consolidation,!7ENH: Add test for extended extern C interface
Checking pipeline status
......@@ -304,6 +304,7 @@ TEST_F(test_transaction, insert_delete_with_property) {
Entity rt;
rt.SetRole("RecordType");
rt.SetName("TestRT");
rt.SetDescription("Some description");
rt.AppendProperty(prop_rt);
auto rt_insertion(connection->CreateTransaction());
......@@ -336,6 +337,7 @@ TEST_F(test_transaction, insert_delete_with_property) {
const auto &retrieved_rt = rt_retrieve_results.GetEntity();
EXPECT_EQ(inserted_rt.GetId(), retrieved_rt.GetId());
EXPECT_EQ(rt.GetName(), retrieved_rt.GetName());
EXPECT_EQ(rt.GetDescription(), retrieved_rt.GetDescription());
EXPECT_EQ(retrieved_rt.GetProperties().Size(), 1);
const auto &retrieved_prop_rt = retrieved_rt.GetProperties().At(0);
......@@ -397,6 +399,7 @@ TEST_F(test_transaction, insert_delete_with_property) {
const auto &retrieved_parent_rec = retrieved_rec.GetParents().At(0);
EXPECT_EQ(retrieved_parent_rec.GetName(), rt.GetName());
EXPECT_EQ(retrieved_parent_rec.GetId(), inserted_rt.GetId());
EXPECT_EQ(retrieved_parent_rec.GetDescription(), rt.GetDescription());
const auto &retrieved_prop_rec = retrieved_rec.GetProperties().At(0);
EXPECT_EQ(retrieved_prop_rec.GetName(), prop_ent.GetName());
......
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