diff --git a/.vscode/.cmaketools.json b/.vscode/.cmaketools.json new file mode 100644 index 0000000..e8a5846 --- /dev/null +++ b/.vscode/.cmaketools.json @@ -0,0 +1,5 @@ +{ + "variant": null, + "activeEnvironments": [], + "codeModel": null +} \ No newline at end of file diff --git a/src/core/entity.cpp b/src/core/entity.cpp index 1368155..517317e 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 63f6229..06f53c6 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -8,8 +8,8 @@ class Entity { public: - Entity(); - virtual ~Entity() = 0; + //Entity(); + //ivirtual ~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 711f5ef..dde9034 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -6,4 +6,3 @@ 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 b660126..456acad 100644 --- a/test/test_seller.cpp +++ b/test/test_seller.cpp @@ -6,7 +6,13 @@ using namespace boost::unit_test; -BOOST_AUTO_TEST_CASE( initial_test ) { +BOOST_AUTO_TEST_CASE( create_uuid_nil ) { 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