Browse Source

Add missing Class hierarchy to section pair based classes

Patrick-Christopher Mattulat 2 years ago
parent
commit
aed9ca16bc
25 changed files with 100 additions and 55 deletions
  1. 3 2
      include/ls-std/io/section-pair/evaluator/SectionPairIdentifierArgumentEvaluator.hpp
  2. 3 2
      include/ls-std/io/section-pair/evaluator/SectionPairRowValueArgumentEvaluator.hpp
  3. 2 2
      include/ls-std/io/section-pair/serialization/SerializableSectionPairDocument.hpp
  4. 2 2
      include/ls-std/io/section-pair/serialization/SerializableSectionPairRow.hpp
  5. 2 2
      include/ls-std/io/section-pair/serialization/SerializableSectionPairRowListValue.hpp
  6. 2 2
      include/ls-std/io/section-pair/serialization/SerializableSectionPairRowSingleValue.hpp
  7. 2 2
      include/ls-std/io/section-pair/serialization/SerializableSectionPairSection.hpp
  8. 2 2
      source/ls-std/io/section-pair/evaluator/SectionPairIdentifierArgumentEvaluator.cpp
  9. 2 2
      source/ls-std/io/section-pair/evaluator/SectionPairRowValueArgumentEvaluator.cpp
  10. 2 2
      source/ls-std/io/section-pair/serialization/SerializableSectionPairDocument.cpp
  11. 2 2
      source/ls-std/io/section-pair/serialization/SerializableSectionPairRow.cpp
  12. 3 3
      source/ls-std/io/section-pair/serialization/SerializableSectionPairRowListValue.cpp
  13. 2 2
      source/ls-std/io/section-pair/serialization/SerializableSectionPairRowSingleValue.cpp
  14. 2 2
      source/ls-std/io/section-pair/serialization/SerializableSectionPairSection.cpp
  15. 7 1
      test/cases/io/section-pair/evaluator/SectionPairIdentifierArgumentEvaluatorTest.cpp
  16. 7 1
      test/cases/io/section-pair/evaluator/SectionPairRowValueArgumentEvaluatorTest.cpp
  17. 7 1
      test/cases/io/section-pair/model/SectionPairDocumentTest.cpp
  18. 6 6
      test/cases/io/section-pair/model/SectionPairRowListValueTest.cpp
  19. 6 6
      test/cases/io/section-pair/model/SectionPairRowSingleValueTest.cpp
  20. 6 6
      test/cases/io/section-pair/model/SectionPairRowTest.cpp
  21. 6 1
      test/cases/io/section-pair/serialization/SerializableSectionPairDocumentTest.cpp
  22. 6 1
      test/cases/io/section-pair/serialization/SerializableSectionPairRowListValueTest.cpp
  23. 6 1
      test/cases/io/section-pair/serialization/SerializableSectionPairRowSingleValueTest.cpp
  24. 6 1
      test/cases/io/section-pair/serialization/SerializableSectionPairRowTest.cpp
  25. 6 1
      test/cases/io/section-pair/serialization/SerializableSectionPairSectionTest.cpp

+ 3 - 2
include/ls-std/io/section-pair/evaluator/SectionPairIdentifierArgumentEvaluator.hpp

@@ -3,13 +3,14 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-09
-* Changed:         2023-02-11
+* Changed:         2023-02-17
 *
 * */
 
 #ifndef LS_STD_SECTION_PAIR_IDENTIFIER_ARGUMENT_EVALUATOR_HPP
 #define LS_STD_SECTION_PAIR_IDENTIFIER_ARGUMENT_EVALUATOR_HPP
 
+#include <ls-std/core/Class.hpp>
 #include <ls-std/core/interface/IEvaluator.hpp>
 #include <ls-std/io/section-pair/SectionPairTypes.hpp>
 #include <ls-std/os/dynamic-goal.hpp>
@@ -17,7 +18,7 @@
 
 namespace ls::std::io
 {
-  class LS_STD_DYNAMIC_GOAL SectionPairIdentifierArgumentEvaluator : public ls::std::core::interface_type::IEvaluator
+  class LS_STD_DYNAMIC_GOAL SectionPairIdentifierArgumentEvaluator : public ls::std::core::interface_type::IEvaluator, public ls::std::core::Class
   {
     public:
 

+ 3 - 2
include/ls-std/io/section-pair/evaluator/SectionPairRowValueArgumentEvaluator.hpp

@@ -3,13 +3,14 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-02-11
+* Changed:         2023-02-17
 *
 * */
 
 #ifndef LS_STD_SECTION_PAIR_ROW_VALUE_ARGUMENT_EVALUATOR_HPP
 #define LS_STD_SECTION_PAIR_ROW_VALUE_ARGUMENT_EVALUATOR_HPP
 
+#include <ls-std/core/Class.hpp>
 #include <ls-std/core/interface/IEvaluator.hpp>
 #include <ls-std/io/section-pair/SectionPairTypes.hpp>
 #include <ls-std/os/dynamic-goal.hpp>
@@ -17,7 +18,7 @@
 
 namespace ls::std::io
 {
-  class LS_STD_DYNAMIC_GOAL SectionPairRowValueArgumentEvaluator : public ls::std::core::interface_type::IEvaluator
+  class LS_STD_DYNAMIC_GOAL SectionPairRowValueArgumentEvaluator : public ls::std::core::interface_type::IEvaluator, public ls::std::core::Class
   {
     public:
 

+ 2 - 2
include/ls-std/io/section-pair/serialization/SerializableSectionPairDocument.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-16
-* Changed:         2023-02-16
+* Changed:         2023-02-17
 *
 * */
 
@@ -17,7 +17,7 @@
 
 namespace ls::std::io
 {
-  class LS_STD_DYNAMIC_GOAL SerializableSectionPairDocument : public ls::std::core::interface_type::ISerializable
+  class LS_STD_DYNAMIC_GOAL SerializableSectionPairDocument : public ls::std::core::interface_type::ISerializable, public ls::std::core::Class
   {
     public:
 

+ 2 - 2
include/ls-std/io/section-pair/serialization/SerializableSectionPairRow.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-11
-* Changed:         2023-02-13
+* Changed:         2023-02-17
 *
 * */
 
@@ -17,7 +17,7 @@
 
 namespace ls::std::io
 {
-  class SerializableSectionPairRow : public ls::std::core::interface_type::ISerializable
+  class SerializableSectionPairRow : public ls::std::core::interface_type::ISerializable, public ls::std::core::Class
   {
     public:
 

+ 2 - 2
include/ls-std/io/section-pair/serialization/SerializableSectionPairRowListValue.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-11
-* Changed:         2023-02-13
+* Changed:         2023-02-17
 *
 * */
 
@@ -17,7 +17,7 @@
 
 namespace ls::std::io
 {
-  class LS_STD_DYNAMIC_GOAL SerializableSectionPairRowListValue : public ls::std::core::interface_type::ISerializable
+  class LS_STD_DYNAMIC_GOAL SerializableSectionPairRowListValue : public ls::std::core::interface_type::ISerializable, public ls::std::core::Class
   {
     public:
 

+ 2 - 2
include/ls-std/io/section-pair/serialization/SerializableSectionPairRowSingleValue.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-11
-* Changed:         2023-02-13
+* Changed:         2023-02-17
 *
 * */
 
@@ -17,7 +17,7 @@
 
 namespace ls::std::io
 {
-  class LS_STD_DYNAMIC_GOAL SerializableSectionPairRowSingleValue : public ls::std::core::interface_type::ISerializable
+  class LS_STD_DYNAMIC_GOAL SerializableSectionPairRowSingleValue : public ls::std::core::interface_type::ISerializable, public ls::std::core::Class
   {
     public:
 

+ 2 - 2
include/ls-std/io/section-pair/serialization/SerializableSectionPairSection.hpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-14
-* Changed:         2023-02-15
+* Changed:         2023-02-17
 *
 * */
 
@@ -17,7 +17,7 @@
 
 namespace ls::std::io
 {
-  class LS_STD_DYNAMIC_GOAL SerializableSectionPairSection : public ls::std::core::interface_type::ISerializable
+  class LS_STD_DYNAMIC_GOAL SerializableSectionPairSection : public ls::std::core::interface_type::ISerializable, public ls::std::core::Class
   {
     public:
 

+ 2 - 2
source/ls-std/io/section-pair/evaluator/SectionPairIdentifierArgumentEvaluator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-09
-* Changed:         2023-02-11
+* Changed:         2023-02-17
 *
 * */
 
@@ -11,7 +11,7 @@
 #include <ls-std/io/section-pair/evaluator/SectionPairIdentifierArgumentEvaluator.hpp>
 #include <ls-std/io/section-pair/validator/SectionPairIdentifierValidator.hpp>
 
-ls::std::io::SectionPairIdentifierArgumentEvaluator::SectionPairIdentifierArgumentEvaluator(ls::std::io::section_pair_identifier _identifier, ::std::string _message) : identifier(::std::move(_identifier)), message(::std::move(_message))
+ls::std::io::SectionPairIdentifierArgumentEvaluator::SectionPairIdentifierArgumentEvaluator(ls::std::io::section_pair_identifier _identifier, ::std::string _message) : ls::std::core::Class("SectionPairIdentifierArgumentEvaluator"), identifier(::std::move(_identifier)), message(::std::move(_message))
 {}
 
 ls::std::io::SectionPairIdentifierArgumentEvaluator::~SectionPairIdentifierArgumentEvaluator() = default;

+ 2 - 2
source/ls-std/io/section-pair/evaluator/SectionPairRowValueArgumentEvaluator.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-02-11
+* Changed:         2023-02-17
 *
 * */
 
@@ -11,7 +11,7 @@
 #include <ls-std/io/section-pair/evaluator/SectionPairRowValueArgumentEvaluator.hpp>
 #include <ls-std/io/section-pair/validator/SectionPairRowValueValidator.hpp>
 
-ls::std::io::SectionPairRowValueArgumentEvaluator::SectionPairRowValueArgumentEvaluator(ls::std::io::section_pair_row_value _value, ::std::string _message) : value(::std::move(_value)), message(::std::move(_message))
+ls::std::io::SectionPairRowValueArgumentEvaluator::SectionPairRowValueArgumentEvaluator(ls::std::io::section_pair_row_value _value, ::std::string _message) : ls::std::core::Class("SectionPairRowValueArgumentEvaluator"), value(::std::move(_value)), message(::std::move(_message))
 {}
 
 ls::std::io::SectionPairRowValueArgumentEvaluator::~SectionPairRowValueArgumentEvaluator() = default;

+ 2 - 2
source/ls-std/io/section-pair/serialization/SerializableSectionPairDocument.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-16
-* Changed:         2023-02-16
+* Changed:         2023-02-17
 *
 * */
 
@@ -12,7 +12,7 @@
 #include <ls-std/io/section-pair/model/SectionPairDocument.hpp>
 #include <ls-std/io/section-pair/serialization/SerializableSectionPairDocument.hpp>
 
-ls::std::io::SerializableSectionPairDocument::SerializableSectionPairDocument(const ::std::shared_ptr<ls::std::core::Class> &_value)
+ls::std::io::SerializableSectionPairDocument::SerializableSectionPairDocument(const ::std::shared_ptr<ls::std::core::Class> &_value) : ls::std::core::Class("SerializableSectionPairDocument")
 {
   this->_setValue(_value);
 }

+ 2 - 2
source/ls-std/io/section-pair/serialization/SerializableSectionPairRow.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-11
-* Changed:         2023-02-13
+* Changed:         2023-02-17
 *
 * */
 
@@ -14,7 +14,7 @@
 #include <ls-std/io/section-pair/model/SectionPairRowSingleValue.hpp>
 #include <ls-std/io/section-pair/serialization/SerializableSectionPairRow.hpp>
 
-ls::std::io::SerializableSectionPairRow::SerializableSectionPairRow(const ::std::shared_ptr<ls::std::core::Class> &_value)
+ls::std::io::SerializableSectionPairRow::SerializableSectionPairRow(const ::std::shared_ptr<ls::std::core::Class> &_value) : ls::std::core::Class("SerializableSectionPairRow")
 {
   this->_setValue(_value);
 }

+ 3 - 3
source/ls-std/io/section-pair/serialization/SerializableSectionPairRowListValue.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-11
-* Changed:         2023-02-13
+* Changed:         2023-02-17
 *
 * */
 
@@ -13,7 +13,7 @@
 #include <ls-std/io/section-pair/model/SectionPairRowListValue.hpp>
 #include <ls-std/io/section-pair/serialization/SerializableSectionPairRowListValue.hpp>
 
-ls::std::io::SerializableSectionPairRowListValue::SerializableSectionPairRowListValue(const ::std::shared_ptr<ls::std::core::Class> &_value)
+ls::std::io::SerializableSectionPairRowListValue::SerializableSectionPairRowListValue(const ::std::shared_ptr<ls::std::core::Class> &_value) : ls::std::core::Class("SerializableSectionPairRowListValue")
 {
   this->_setValue(_value);
 }
@@ -39,7 +39,7 @@ ls::std::core::type::byte_field ls::std::io::SerializableSectionPairRowListValue
 
 void ls::std::io::SerializableSectionPairRowListValue::unmarshal(const ls::std::core::type::byte_field &_data)
 {
-  ls::std::core::EmptyStringArgumentEvaluator{_data}.evaluate(); // TODO necessary? evaluators should be used outside of serializable
+  ls::std::core::EmptyStringArgumentEvaluator{_data}.evaluate();
   ls::std::core::type::byte_field searchText = _data;
 
   while (!searchText.empty() && searchText != ls::std::io::NewLine::get())

+ 2 - 2
source/ls-std/io/section-pair/serialization/SerializableSectionPairRowSingleValue.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-11
-* Changed:         2023-02-15
+* Changed:         2023-02-17
 *
 * */
 
@@ -13,7 +13,7 @@
 #include <ls-std/io/section-pair/model/SectionPairRowSingleValue.hpp>
 #include <ls-std/io/section-pair/serialization/SerializableSectionPairRowSingleValue.hpp>
 
-ls::std::io::SerializableSectionPairRowSingleValue::SerializableSectionPairRowSingleValue(const ::std::shared_ptr<ls::std::core::Class> &_value)
+ls::std::io::SerializableSectionPairRowSingleValue::SerializableSectionPairRowSingleValue(const ::std::shared_ptr<ls::std::core::Class> &_value) : ls::std::core::Class("SerializableSectionPairRowSingleValue")
 {
   this->_setValue(_value);
 }

+ 2 - 2
source/ls-std/io/section-pair/serialization/SerializableSectionPairSection.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-14
-* Changed:         2023-02-16
+* Changed:         2023-02-17
 *
 * */
 
@@ -15,7 +15,7 @@
 #include <ls-std/io/section-pair/serialization/SerializableSectionPairSection.hpp>
 #include <ls-std/io/section-pair/validator/SectionPairSectionIdUnmarshalValidator.hpp>
 
-ls::std::io::SerializableSectionPairSection::SerializableSectionPairSection(const ::std::shared_ptr<ls::std::core::Class> &_value)
+ls::std::io::SerializableSectionPairSection::SerializableSectionPairSection(const ::std::shared_ptr<ls::std::core::Class> &_value) : ls::std::core::Class("SerializableSectionPairSection")
 {
   this->_setValue(_value);
 }

+ 7 - 1
test/cases/io/section-pair/evaluator/SectionPairIdentifierArgumentEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-09
-* Changed:         2023-02-11
+* Changed:         2023-02-17
 *
 * */
 
@@ -32,6 +32,12 @@ namespace
       {}
   };
 
+  TEST_F(SectionPairIdentifierArgumentEvaluatorTest, getClassName)
+  {
+    shared_ptr<SectionPairIdentifierArgumentEvaluator> evaluator = make_shared<SectionPairIdentifierArgumentEvaluator>("_id", "not valid!");
+    ASSERT_STREQ("SectionPairIdentifierArgumentEvaluator", evaluator->getClassName().c_str());
+  }
+
   TEST_F(SectionPairIdentifierArgumentEvaluatorTest, evaluate)
   {
     EXPECT_THROW(

+ 7 - 1
test/cases/io/section-pair/evaluator/SectionPairRowValueArgumentEvaluatorTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-02-11
+* Changed:         2023-02-17
 *
 * */
 
@@ -32,6 +32,12 @@ namespace
       {}
   };
 
+  TEST_F(SectionPairRowValueArgumentEvaluatorTest, getClassName)
+  {
+    shared_ptr<SectionPairRowValueArgumentEvaluator> evaluator = make_shared<SectionPairRowValueArgumentEvaluator>("=33", "section pair value contains invalid characters!");
+    ASSERT_STREQ("SectionPairRowValueArgumentEvaluator", evaluator->getClassName().c_str());
+  }
+
   TEST_F(SectionPairRowValueArgumentEvaluatorTest, evaluate)
   {
     EXPECT_THROW(

+ 7 - 1
test/cases/io/section-pair/model/SectionPairDocumentTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-15
-* Changed:         2023-02-16
+* Changed:         2023-02-17
 *
 * */
 
@@ -107,6 +107,12 @@ namespace
     ASSERT_EQ(1, document->getAmountOfSections());
   }
 
+  TEST_F(SectionPairDocumentTest, getClassName)
+  {
+    shared_ptr<SectionPairDocument> document = make_shared<SectionPairDocument>();
+    ASSERT_STREQ("SectionPairDocument", document->getClassName().c_str());
+  }
+
   TEST_F(SectionPairDocumentTest, getHeader)
   {
     shared_ptr<SectionPairDocument> document = make_shared<SectionPairDocument>();

+ 6 - 6
test/cases/io/section-pair/model/SectionPairRowListValueTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-02-16
+* Changed:         2023-02-17
 *
 * */
 
@@ -87,11 +87,6 @@ namespace
     ASSERT_TRUE(list.getList().empty());
   }
 
-  TEST_F(SectionPairRowListValueTest, getClassName)
-  {
-    ASSERT_STREQ("SectionPairRowListValue", SectionPairRowListValue{}.getClassName().c_str());
-  }
-
   TEST_F(SectionPairRowListValueTest, get_no_elements)
   {
     SectionPairRowListValue list{};
@@ -110,6 +105,11 @@ namespace
         IndexOutOfBoundsException);
   }
 
+  TEST_F(SectionPairRowListValueTest, getClassName)
+  {
+    ASSERT_STREQ("SectionPairRowListValue", SectionPairRowListValue{}.getClassName().c_str());
+  }
+
   TEST_F(SectionPairRowListValueTest, getList)
   {
     SectionPairRowListValue list{};

+ 6 - 6
test/cases/io/section-pair/model/SectionPairRowSingleValueTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-10
-* Changed:         2023-02-15
+* Changed:         2023-02-17
 *
 * */
 
@@ -32,11 +32,6 @@ namespace
       {}
   };
 
-  TEST_F(SectionPairRowSingleValueTest, getClassName)
-  {
-    ASSERT_STREQ("SectionPairRowSingleValue", SectionPairRowSingleValue{"blue"}.getClassName().c_str());
-  }
-
   TEST_F(SectionPairRowSingleValueTest, constructor_empty_value)
   {
     EXPECT_THROW(
@@ -75,6 +70,11 @@ namespace
     ASSERT_STREQ("blue", value.get().c_str());
   }
 
+  TEST_F(SectionPairRowSingleValueTest, getClassName)
+  {
+    ASSERT_STREQ("SectionPairRowSingleValue", SectionPairRowSingleValue{"blue"}.getClassName().c_str());
+  }
+
   TEST_F(SectionPairRowSingleValueTest, getType)
   {
     SectionPairRowSingleValue value{"blue"};

+ 6 - 6
test/cases/io/section-pair/model/SectionPairRowTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-08
-* Changed:         2023-02-15
+* Changed:         2023-02-17
 *
 * */
 
@@ -32,11 +32,6 @@ namespace
       {}
   };
 
-  TEST_F(SectionPairRowTest, getClassName)
-  {
-    ASSERT_STREQ("SectionPairRow", SectionPairRow("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE).getClassName().c_str());
-  }
-
   TEST_F(SectionPairRowTest, constructor_empty_key)
   {
     EXPECT_THROW(
@@ -69,6 +64,11 @@ namespace
         IllegalArgumentException);
   }
 
+  TEST_F(SectionPairRowTest, getClassName)
+  {
+    ASSERT_STREQ("SectionPairRow", SectionPairRow("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_LIST_VALUE).getClassName().c_str());
+  }
+
   TEST_F(SectionPairRowTest, getKey)
   {
     ls::std::io::section_pair_identifier key = "tmp-key";

+ 6 - 1
test/cases/io/section-pair/serialization/SerializableSectionPairDocumentTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-16
-* Changed:         2023-02-16
+* Changed:         2023-02-17
 *
 * */
 
@@ -51,6 +51,11 @@ namespace
         IllegalArgumentException);
   }
 
+  TEST_F(SerializableSectionPairDocumentTest, getClassName)
+  {
+    ASSERT_STREQ("SerializableSectionPairDocument", SerializableSectionPairDocument{make_shared<SectionPairDocument>()}.getClassName().c_str());
+  }
+
   TEST_F(SerializableSectionPairDocumentTest, getValue)
   {
     SerializableSectionPairDocument serializable(make_shared<SectionPairDocument>());

+ 6 - 1
test/cases/io/section-pair/serialization/SerializableSectionPairRowListValueTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-11
-* Changed:         2023-02-11
+* Changed:         2023-02-17
 *
 * */
 
@@ -48,6 +48,11 @@ namespace
         IllegalArgumentException);
   }
 
+  TEST_F(SerializableSectionPairRowListValueTest, getClassName)
+  {
+    ASSERT_STREQ("SerializableSectionPairRowListValue", SerializableSectionPairRowListValue{make_shared<SectionPairRowListValue>()}.getClassName().c_str());
+  }
+
   TEST_F(SerializableSectionPairRowListValueTest, getValue)
   {
     shared_ptr<SectionPairRowListValue> value = make_shared<SectionPairRowListValue>();

+ 6 - 1
test/cases/io/section-pair/serialization/SerializableSectionPairRowSingleValueTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-11
-* Changed:         2023-02-15
+* Changed:         2023-02-17
 *
 * */
 
@@ -49,6 +49,11 @@ namespace
         IllegalArgumentException);
   }
 
+  TEST_F(SerializableSectionPairRowSingleValueTest, getClassName)
+  {
+    ASSERT_STREQ("SerializableSectionPairRowSingleValue", SerializableSectionPairRowSingleValue{make_shared<SectionPairRowSingleValue>("empty")}.getClassName().c_str());
+  }
+
   TEST_F(SerializableSectionPairRowSingleValueTest, getValue)
   {
     shared_ptr<SectionPairRowSingleValue> value = make_shared<SectionPairRowSingleValue>("empty");

+ 6 - 1
test/cases/io/section-pair/serialization/SerializableSectionPairRowTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-12
-* Changed:         2023-02-15
+* Changed:         2023-02-17
 *
 * */
 
@@ -49,6 +49,11 @@ namespace
         IllegalArgumentException);
   }
 
+  TEST_F(SerializableSectionPairRowTest, getClassName)
+  {
+    ASSERT_STREQ("SerializableSectionPairRow", SerializableSectionPairRow{make_shared<SectionPairRow>("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE)}.getClassName().c_str());
+  }
+
   TEST_F(SerializableSectionPairRowTest, getValue)
   {
     SerializableSectionPairRow serializable{make_shared<SectionPairRow>("tmp-key", SectionPairRowEnumType::SECTION_PAIR_ROW_SINGLE_VALUE)};

+ 6 - 1
test/cases/io/section-pair/serialization/SerializableSectionPairSectionTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-14
-* Changed:         2023-02-16
+* Changed:         2023-02-17
 *
 * */
 
@@ -51,6 +51,11 @@ namespace
         IllegalArgumentException);
   }
 
+  TEST_F(SerializableSectionPairSectionTest, getClassName)
+  {
+    ASSERT_STREQ("SerializableSectionPairSection", SerializableSectionPairSection{make_shared<SectionPairSection>("general")}.getClassName().c_str());
+  }
+
   TEST_F(SerializableSectionPairSectionTest, getValue)
   {
     SerializableSectionPairSection serializable{make_shared<SectionPairSection>("general")};