From 7569aaa3c12c36b7835b620c5f967bc77b99a1d1 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Mon, 2 Aug 2021 12:18:17 +0200 Subject: [PATCH] TST: Fix name --- test/test_entity.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/test/test_entity.cpp b/test/test_entity.cpp index e34e073..7914eeb 100644 --- a/test/test_entity.cpp +++ b/test/test_entity.cpp @@ -101,14 +101,15 @@ TEST(test_entity, test_from_id_response) { // NOLINT Entity other_ent(&idr_warnings_and_infos); - EXPECT_EQ(entity.GetId(), "other_entity_id"); - EXPECT_EQ(entity.GetWarnings().Size(), 1); - EXPECT_EQ(entity.GetWarnings().At(0).GetDescription(), "warning_desc"); - EXPECT_EQ(entity.GetWarnings().At(0).GetCode(), + std::cout << other_ent.ToString() << std::endl; + EXPECT_EQ(other_ent.GetId(), "other_entity_id"); + EXPECT_EQ(other_ent.GetWarnings().Size(), 1); + EXPECT_EQ(other_ent.GetWarnings().At(0).GetDescription(), "warning_desc"); + EXPECT_EQ(other_ent.GetWarnings().At(0).GetCode(), MessageCode::ENTITY_HAS_NO_PROPERTIES); - EXPECT_EQ(entity.GetInfos().Size(), 1); - EXPECT_EQ(entity.GetInfos().At(0).GetDescription(), "info_desc"); - EXPECT_EQ(entity.GetInfos().At(0).GetCode(), MessageCode::UNSPECIFIED); + EXPECT_EQ(other_ent.GetInfos().Size(), 1); + EXPECT_EQ(other_ent.GetInfos().At(0).GetDescription(), "info_desc"); + EXPECT_EQ(other_ent.GetInfos().At(0).GetCode(), MessageCode::UNSPECIFIED); } } // namespace caosdb::entity -- GitLab