Browse Source

Remove serializable factory approach

Patrick-Christopher Mattulat 3 years ago
parent
commit
231065e332

+ 1 - 10
CMakeLists.txt

@@ -95,11 +95,7 @@ set(SOURCE_FILES
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KvPair.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KvDocument.cpp
         ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KvParser.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KvReader.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/SerializableJsonFactory.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/boxing/SerializableJsonIntegerFactory.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/boxing/SerializableJsonLongFactory.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/factory/serialization/json/event/SerializableJsonEventFactory.cpp)
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/ls_std/io/kv/KvReader.cpp)
 
 if (${LS_STD_BUILD_WITH_TESTS})
     set(TEST_FILES
@@ -159,11 +155,6 @@ if (${LS_STD_BUILD_WITH_TESTS})
             ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/kv/KvDocumentTest.cpp
             ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/kv/KvParserTest.cpp
             ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/io/kv/KvReaderTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/SerializableFactoryTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/boxing/SerializableJsonIntegerFactoryTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/boxing/SerializableJsonLongFactoryTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/factory/serialization/json/event/SerializableJsonEventFactoryTest.cpp
-            ${CMAKE_CURRENT_SOURCE_DIR}/test/classes/factory/SerializableTestFactory.cpp
             ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/exception/EventNotHandledExceptionTest.cpp
             ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/exception/EventNotSubscribedExceptionTest.cpp
             ${CMAKE_CURRENT_SOURCE_DIR}/test/cases/exception/FileNotFoundExceptionTest.cpp

+ 0 - 43
include/ls_std/factory/serialization/json/SerializableJsonFactory.hpp

@@ -1,43 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-24
- * Changed:         2021-05-02
- *
- * */
-
-#ifndef LS_STD_SERIALIZABLE_JSON_FACTORY_HPP
-#define LS_STD_SERIALIZABLE_JSON_FACTORY_HPP
-
-#include <ls_std/base/Class.hpp>
-#include <map>
-#include <string>
-#include <memory>
-#include <ls_std/factory/IFactory.hpp>
-
-namespace ls_std
-{
-  class SerializableJsonFactory : public ls_std::Class
-  {
-    public:
-
-      SerializableJsonFactory();
-      ~SerializableJsonFactory() override = default;
-
-      bool addFactory(const std::pair<std::string, std::shared_ptr<ls_std::IFactory>> &_factoryInsertion);
-      std::shared_ptr<ls_std::Class> build(const std::string &_relatedObjectName);
-      bool clear();
-      bool hasFactory(const std::string &_relatedObjectName);
-      bool removeFactory(const std::string &_relatedObjectName);
-
-    private:
-
-      std::map<std::string, std::shared_ptr<ls_std::IFactory>> factories{};
-
-      bool _hasFactory(const std::string &_relatedObjectName);
-      void _init();
-  };
-}
-
-#endif

+ 0 - 29
include/ls_std/factory/serialization/json/boxing/SerializableJsonIntegerFactory.hpp

@@ -1,29 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-24
- * Changed:         2021-05-02
- *
- * */
-
-#ifndef LS_STD_SERIALIZABLE_JSON_INTEGER_FACTORY_HPP
-#define LS_STD_SERIALIZABLE_JSON_INTEGER_FACTORY_HPP
-
-#include <ls_std/factory/IFactory.hpp>
-#include <memory>
-
-namespace ls_std
-{
-  class SerializableJsonIntegerFactory : public ls_std::Class, public ls_std::IFactory
-  {
-    public:
-
-      SerializableJsonIntegerFactory();
-      ~SerializableJsonIntegerFactory() override = default;
-
-      std::shared_ptr<ls_std::Class> build() override;
-  };
-}
-
-#endif

+ 0 - 29
include/ls_std/factory/serialization/json/boxing/SerializableJsonLongFactory.hpp

@@ -1,29 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-24
- * Changed:         2021-05-02
- *
- * */
-
-#ifndef LS_STD_SERIALIZABLE_JSON_LONG_FACTORY_HPP
-#define LS_STD_SERIALIZABLE_JSON_LONG_FACTORY_HPP
-
-#include <ls_std/factory/IFactory.hpp>
-#include <memory>
-
-namespace ls_std
-{
-  class SerializableJsonLongFactory : public ls_std::Class, public ls_std::IFactory
-  {
-    public:
-
-      SerializableJsonLongFactory();
-      ~SerializableJsonLongFactory() override = default;
-
-      std::shared_ptr<ls_std::Class> build() override;
-  };
-}
-
-#endif

+ 0 - 29
include/ls_std/factory/serialization/json/event/SerializableJsonEventFactory.hpp

@@ -1,29 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-30
- * Changed:         2021-05-02
- *
- * */
-
-#ifndef LS_STD_SERIALIZABLE_JSON_EVENT_FACTORY_HPP
-#define LS_STD_SERIALIZABLE_JSON_EVENT_FACTORY_HPP
-
-#include <ls_std/factory/IFactory.hpp>
-#include <memory>
-
-namespace ls_std
-{
-  class SerializableJsonEventFactory : public ls_std::Class, public ls_std::IFactory
-  {
-    public:
-
-      SerializableJsonEventFactory();
-      ~SerializableJsonEventFactory() override = default;
-
-      std::shared_ptr<ls_std::Class> build() override;
-  };
-}
-
-#endif

+ 1 - 5
include/ls_std/ls_std.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-10-29
- * Changed:         2021-07-12
+ * Changed:         2021-07-14
  *
  * */
 
@@ -96,9 +96,5 @@
 #include "event/EventManager.hpp"
 
 #include "factory/IFactory.hpp"
-#include "ls_std/factory/serialization/json/SerializableJsonFactory.hpp"
-#include "factory/serialization/json/boxing/SerializableJsonIntegerFactory.hpp"
-#include "factory/serialization/json/boxing/SerializableJsonLongFactory.hpp"
-#include "factory/serialization/json/event/SerializableJsonEventFactory.hpp"
 
 #endif

+ 0 - 91
source/ls_std/factory/serialization/json/SerializableJsonFactory.cpp

@@ -1,91 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-24
- * Changed:         2021-07-12
- *
- * */
-
-#include <ls_std/factory/serialization/json/SerializableJsonFactory.hpp>
-#include <ls_std/boxing/Float.hpp>
-#include <ls_std/boxing/Integer.hpp>
-#include <ls_std/boxing/Long.hpp>
-#include <ls_std/factory/serialization/json/boxing/SerializableJsonIntegerFactory.hpp>
-#include <ls_std/factory/serialization/json/boxing/SerializableJsonLongFactory.hpp>
-#include <ls_std/exception/IllegalArgumentException.hpp>
-#include <ls_std/exception/NullPointerException.hpp>
-
-ls_std::SerializableJsonFactory::SerializableJsonFactory() : ls_std::Class("SerializableJsonFactory")
-{
-  this->_init();
-}
-
-bool ls_std::SerializableJsonFactory::addFactory(const std::pair<std::string, std::shared_ptr<ls_std::IFactory>> &_factoryInsertion)
-{
-  bool factoryAdded{};
-
-  if (_factoryInsertion.first.empty())
-  {
-    throw ls_std::IllegalArgumentException{};
-  }
-
-  if (_factoryInsertion.second == nullptr)
-  {
-    throw ls_std::NullPointerException{};
-  }
-
-  if (!this->_hasFactory(_factoryInsertion.first))
-  {
-    factoryAdded = this->factories.insert(_factoryInsertion).second;
-  }
-
-  return factoryAdded;
-}
-
-std::shared_ptr<ls_std::Class> ls_std::SerializableJsonFactory::build(const std::string &_relatedObjectName)
-{
-  std::shared_ptr<ls_std::Class> requestedBuiltObject{};
-
-  if (this->_hasFactory(_relatedObjectName))
-  {
-    requestedBuiltObject = this->factories.at(_relatedObjectName)->build();
-  }
-
-  return requestedBuiltObject;
-}
-
-bool ls_std::SerializableJsonFactory::clear()
-{
-  this->factories.clear();
-  return factories.empty();
-}
-
-bool ls_std::SerializableJsonFactory::hasFactory(const std::string &_relatedObjectName)
-{
-  return this->_hasFactory(_relatedObjectName);
-}
-
-bool ls_std::SerializableJsonFactory::removeFactory(const std::string &_relatedObjectName)
-{
-  bool wasRemoved{};
-
-  if (this->_hasFactory(_relatedObjectName))
-  {
-    this->factories.erase(_relatedObjectName);
-    wasRemoved = !this->_hasFactory(_relatedObjectName);
-  }
-
-  return wasRemoved;
-}
-
-bool ls_std::SerializableJsonFactory::_hasFactory(const std::string &_relatedObjectName)
-{
-  return this->factories.find(_relatedObjectName) != this->factories.end();
-}
-
-void ls_std::SerializableJsonFactory::_init()
-{
-  this->factories.insert({ls_std::Integer{}.getClassName(), std::make_shared<ls_std::SerializableJsonIntegerFactory>()});
-  this->factories.insert({ls_std::Long{}.getClassName(), std::make_shared<ls_std::SerializableJsonLongFactory>()});
-}

+ 0 - 24
source/ls_std/factory/serialization/json/boxing/SerializableJsonIntegerFactory.cpp

@@ -1,24 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-25
- * Changed:         2021-05-02
- *
- * */
-
-#include <ls_std/factory/serialization/json/boxing/SerializableJsonIntegerFactory.hpp>
-#include <ls_std/boxing/Integer.hpp>
-#include <ls_std/serialization/json/boxing/SerializableJsonInteger.hpp>
-
-ls_std::SerializableJsonIntegerFactory::SerializableJsonIntegerFactory() : ls_std::Class("SerializableJsonIntegerFactory")
-{}
-
-std::shared_ptr<ls_std::Class> ls_std::SerializableJsonIntegerFactory::build()
-{
-  std::shared_ptr<ls_std::Integer> requestedObject = std::make_shared<ls_std::Integer>();
-  std::shared_ptr<ls_std::ISerializable> serializable = std::make_shared<ls_std::SerializableJsonInteger>(requestedObject);
-  requestedObject->setSerializable(serializable);
-
-  return std::dynamic_pointer_cast<ls_std::Class>(requestedObject);
-}

+ 0 - 24
source/ls_std/factory/serialization/json/boxing/SerializableJsonLongFactory.cpp

@@ -1,24 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-25
- * Changed:         2021-05-02
- *
- * */
-
-#include <ls_std/factory/serialization/json/boxing/SerializableJsonLongFactory.hpp>
-#include <ls_std/boxing/Long.hpp>
-#include <ls_std/serialization/json/boxing/SerializableJsonLong.hpp>
-
-ls_std::SerializableJsonLongFactory::SerializableJsonLongFactory() : ls_std::Class("SerializableJsonLongFactory")
-{}
-
-std::shared_ptr<ls_std::Class> ls_std::SerializableJsonLongFactory::build()
-{
-  std::shared_ptr<ls_std::Long> requestedObject = std::make_shared<ls_std::Long>();
-  std::shared_ptr<ls_std::ISerializable> serializable = std::make_shared<ls_std::SerializableJsonLong>(requestedObject);
-  requestedObject->setSerializable(serializable);
-
-  return std::dynamic_pointer_cast<ls_std::Class>(requestedObject);
-}

+ 0 - 24
source/ls_std/factory/serialization/json/event/SerializableJsonEventFactory.cpp

@@ -1,24 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-30
- * Changed:         2021-05-02
- *
- * */
-
-#include <ls_std/factory/serialization/json/event/SerializableJsonEventFactory.hpp>
-#include <ls_std/event/Event.hpp>
-#include <ls_std/serialization/json/event/SerializableJsonEvent.hpp>
-
-ls_std::SerializableJsonEventFactory::SerializableJsonEventFactory() : ls_std::Class("SerializableJsonEventFactory")
-{}
-
-std::shared_ptr<ls_std::Class> ls_std::SerializableJsonEventFactory::build()
-{
-  std::shared_ptr<ls_std::Event> requestedObject = std::make_shared<ls_std::Event>("TMP_ID");
-  std::shared_ptr<ls_std::ISerializable> serializable = std::make_shared<ls_std::SerializableJsonEvent>(requestedObject);
-  requestedObject->setSerializable(serializable);
-
-  return std::dynamic_pointer_cast<ls_std::Class>(requestedObject);
-}

+ 0 - 128
test/cases/factory/serialization/json/SerializableFactoryTest.cpp

@@ -1,128 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-24
- * Changed:         2021-07-12
- *
- * */
-
-#include <gtest/gtest.h>
-#include <ls_std/ls_std.hpp>
-#include <ls_std_test.hpp>
-
-namespace
-{
-  class SerializableFactoryTest : public ::testing::Test
-  {
-    protected:
-
-      SerializableFactoryTest() = default;
-      ~SerializableFactoryTest() override = default;
-
-      void SetUp() override
-      {}
-
-      void TearDown() override
-      {}
-  };
-
-  TEST_F(SerializableFactoryTest, addFactory)
-  {
-    std::shared_ptr<ls_std_test::SerializableTestFactory> serializableTestFactory = std::make_shared<ls_std_test::SerializableTestFactory>();
-    ls_std::SerializableJsonFactory serializableFactory{};
-
-    ASSERT_TRUE(serializableFactory.addFactory({"TestClass", serializableTestFactory}));
-  }
-
-  TEST_F(SerializableFactoryTest, addFactory_emptyKey)
-  {
-    std::shared_ptr<ls_std_test::SerializableTestFactory> serializableTestFactory = std::make_shared<ls_std_test::SerializableTestFactory>();
-    ls_std::SerializableJsonFactory serializableFactory{};
-
-    EXPECT_THROW({
-                   try
-                   {
-                     serializableFactory.addFactory({"", serializableTestFactory});
-                   }
-                   catch (const ls_std::IllegalArgumentException &_exception)
-                   {
-                     throw;
-                   }
-                 }, ls_std::IllegalArgumentException);
-  }
-
-  TEST_F(SerializableFactoryTest, addFactory_nullPointerValueForFactory)
-  {
-    std::shared_ptr<ls_std_test::SerializableTestFactory> serializableTestFactory{};
-    ls_std::SerializableJsonFactory serializableFactory{};
-
-    EXPECT_THROW({
-                   try
-                   {
-                     serializableFactory.addFactory({"TestClass", serializableTestFactory});
-                   }
-                   catch (const ls_std::NullPointerException &_exception)
-                   {
-                     throw;
-                   }
-                 }, ls_std::NullPointerException);
-  }
-
-  TEST_F(SerializableFactoryTest, addFactory_dublicatedElement)
-  {
-    std::shared_ptr<ls_std_test::SerializableTestFactory> serializableTestFactory = std::make_shared<ls_std_test::SerializableTestFactory>();
-    ls_std::SerializableJsonFactory serializableFactory{};
-
-    ASSERT_TRUE(serializableFactory.addFactory({"TestClass", serializableTestFactory}));
-    ASSERT_FALSE(serializableFactory.addFactory({"TestClass", serializableTestFactory}));
-  }
-
-  TEST_F(SerializableFactoryTest, build)
-  {
-    ls_std::SerializableJsonFactory serializableFactory{};
-    std::shared_ptr<ls_std::Class> serializable = serializableFactory.build(ls_std::Boolean{}.getClassName());
-
-    ASSERT_TRUE(serializable != nullptr);
-    ASSERT_STREQ(ls_std::Boolean{}.getClassName().c_str(), serializable->getClassName().c_str());
-  }
-
-  TEST_F(SerializableFactoryTest, build_factoryNotAvailable)
-  {
-    ls_std::SerializableJsonFactory serializableFactory{};
-    std::shared_ptr<ls_std::Class> serializable = serializableFactory.build(ls_std_test::GossipNewsAgency{}.getName());
-
-    ASSERT_FALSE(serializable != nullptr);
-  }
-
-  TEST_F(SerializableFactoryTest, clear)
-  {
-    ls_std::SerializableJsonFactory serializableFactory{};
-    ASSERT_TRUE(serializableFactory.clear());
-  }
-
-  TEST_F(SerializableFactoryTest, hasFactory_ofBoxingPackage)
-  {
-    ls_std::SerializableJsonFactory serializableFactory{};
-    ASSERT_TRUE(serializableFactory.hasFactory(ls_std::Integer{}.getClassName()));
-    ASSERT_TRUE(serializableFactory.hasFactory(ls_std::Long{}.getClassName()));
-  }
-
-  TEST_F(SerializableFactoryTest, hasFactory_factoryNotAvailable)
-  {
-    ls_std::SerializableJsonFactory serializableFactory{};
-    ASSERT_FALSE(serializableFactory.hasFactory(ls_std_test::GossipNewsAgency{}.getName()));
-  }
-
-  TEST_F(SerializableFactoryTest, removeFactory)
-  {
-    ls_std::SerializableJsonFactory serializableFactory{};
-    ASSERT_TRUE(serializableFactory.removeFactory(ls_std::Boolean{}.getClassName()));
-  }
-
-  TEST_F(SerializableFactoryTest, removeFactory_factoryNotAvailable)
-  {
-    ls_std::SerializableJsonFactory serializableFactory{};
-    ASSERT_FALSE(serializableFactory.removeFactory(ls_std_test::GossipNewsAgency{}.getName()));
-  }
-}

+ 0 - 35
test/cases/factory/serialization/json/boxing/SerializableJsonIntegerFactoryTest.cpp

@@ -1,35 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-25
- * Changed:         2021-05-02
- *
- * */
-
-#include <gtest/gtest.h>
-#include <ls_std/ls_std.hpp>
-
-namespace
-{
-  class SerializableJsonIntegerFactoryTest : public ::testing::Test
-  {
-    protected:
-
-      SerializableJsonIntegerFactoryTest() = default;
-      ~SerializableJsonIntegerFactoryTest() override = default;
-
-      void SetUp() override
-      {}
-
-      void TearDown() override
-      {}
-  };
-
-  TEST_F(SerializableJsonIntegerFactoryTest, build)
-  {
-    std::shared_ptr<ls_std::Integer> value = std::dynamic_pointer_cast<ls_std::Integer>(ls_std::SerializableJsonIntegerFactory{}.build());
-    ASSERT_TRUE(value != nullptr);
-    ASSERT_STREQ("Integer", value->getClassName().c_str());
-  }
-}

+ 0 - 35
test/cases/factory/serialization/json/boxing/SerializableJsonLongFactoryTest.cpp

@@ -1,35 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-25
- * Changed:         2021-05-02
- *
- * */
-
-#include <gtest/gtest.h>
-#include <ls_std/ls_std.hpp>
-
-namespace
-{
-  class SerializableJsonLongFactoryTest : public ::testing::Test
-  {
-    protected:
-
-      SerializableJsonLongFactoryTest() = default;
-      ~SerializableJsonLongFactoryTest() override = default;
-
-      void SetUp() override
-      {}
-
-      void TearDown() override
-      {}
-  };
-
-  TEST_F(SerializableJsonLongFactoryTest, build)
-  {
-    std::shared_ptr<ls_std::Long> value = std::dynamic_pointer_cast<ls_std::Long>(ls_std::SerializableJsonLongFactory{}.build());
-    ASSERT_TRUE(value != nullptr);
-    ASSERT_STREQ("Long", value->getClassName().c_str());
-  }
-}

+ 0 - 35
test/cases/factory/serialization/json/event/SerializableJsonEventFactoryTest.cpp

@@ -1,35 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-30
- * Changed:         2021-05-02
- *
- * */
-
-#include <gtest/gtest.h>
-#include <ls_std/ls_std.hpp>
-
-namespace
-{
-  class SerializableJsonEventFactoryTest : public ::testing::Test
-  {
-    protected:
-
-      SerializableJsonEventFactoryTest() = default;
-      ~SerializableJsonEventFactoryTest() override = default;
-
-      void SetUp() override
-      {}
-
-      void TearDown() override
-      {}
-  };
-
-  TEST_F(SerializableJsonEventFactoryTest, build)
-  {
-    std::shared_ptr<ls_std::Event> value = std::dynamic_pointer_cast<ls_std::Event>(ls_std::SerializableJsonEventFactory{}.build());
-    ASSERT_TRUE(value != nullptr);
-    ASSERT_STREQ("Event", value->getClassName().c_str());
-  }
-}

+ 0 - 15
test/classes/factory/SerializableTestFactory.cpp

@@ -1,15 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-24
- * Changed:         2021-04-24
- *
- * */
-
-#include "SerializableTestFactory.hpp"
-
-std::shared_ptr<ls_std::Class> ls_std_test::SerializableTestFactory::build()
-{
-  return std::make_shared<ls_std::Class>("TestClass");
-}

+ 0 - 28
test/classes/factory/SerializableTestFactory.hpp

@@ -1,28 +0,0 @@
-/*
- * Author:          Patrick-Christopher Mattulat
- * Company:         Lynar Studios
- * E-Mail:          webmaster@lynarstudios.com
- * Created:         2021-04-24s
- * Changed:         2021-04-24
- *
- * */
-
-#ifndef LS_STD_SERIALIZABLE_TEST_FACTORY_HPP
-#define LS_STD_SERIALIZABLE_TEST_FACTORY_HPP
-
-#include <ls_std/factory/IFactory.hpp>
-
-namespace ls_std_test
-{
-  class SerializableTestFactory : public ls_std::IFactory
-  {
-    public:
-
-      SerializableTestFactory() = default;
-      ~SerializableTestFactory() = default;
-
-      std::shared_ptr<ls_std::Class> build() override;
-  };
-}
-
-#endif

+ 1 - 3
test/ls_std_test.hpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-11-27
- * Changed:         2021-05-02
+ * Changed:         2021-07-14
  *
  * */
 
@@ -18,8 +18,6 @@
 #include "classes/event/GossipNewsEvent.hpp"
 #include "classes/event/SeriousNewsEvent.hpp"
 
-#include "classes/factory/SerializableTestFactory.hpp"
-
 #include "classes/io/xml/XmlParserTestWrapper.hpp"
 
 #endif