diff --git a/.vscode/.cmaketools.json b/.vscode/.cmaketools.json deleted file mode 100644 index e8a5846..0000000 --- a/.vscode/.cmaketools.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "variant": null, - "activeEnvironments": [], - "codeModel": null -} \ No newline at end of file diff --git a/src/core/entity.cpp b/src/core/entity.cpp index 517317e..1368155 100644 --- a/src/core/entity.cpp +++ b/src/core/entity.cpp @@ -5,7 +5,7 @@ #include #include -//Entity::Entity() {} +Entity::Entity() {} void Entity::createUuid() { diff --git a/src/core/entity.h b/src/core/entity.h index 06f53c6..63f6229 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -8,8 +8,8 @@ class Entity { public: - //Entity(); - //ivirtual ~Entity() = 0; + Entity(); + virtual ~Entity() = 0; const boost::uuids::uuid& getUuid() const { return uuid; }; void createUuid(); void createUuidFromString(const std::string& uuidString); diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index dde9034..711f5ef 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -6,3 +6,4 @@ set(TEST_SOURCES test_seller.cpp) add_executable(testsuite ${TEST_SOURCES}) target_link_libraries(testsuite core Boost::boost Boost::filesystem Boost::unit_test_framework) +#target_link_libraries(testsuite core) \ No newline at end of file diff --git a/test/test_seller.cpp b/test/test_seller.cpp index 456acad..b660126 100644 --- a/test/test_seller.cpp +++ b/test/test_seller.cpp @@ -6,13 +6,7 @@ using namespace boost::unit_test; -BOOST_AUTO_TEST_CASE( create_uuid_nil ) { +BOOST_AUTO_TEST_CASE( initial_test ) { Seller seller{}; BOOST_TEST(seller.getUuid().is_nil() == true); } - -BOOST_AUTO_TEST_CASE(create_uuid) { - Seller seller{}; - seller.createUuid(); - BOOST_TEST(seller.getUuid().is_nil() == false); -} \ No newline at end of file