From 6a075f2402b1b82bed3069efdd28b1d062108e66 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 9 Jul 2018 17:50:43 +0200 Subject: [PATCH 1/4] remove ctor/dtor --- src/core/entity.cpp | 2 +- src/core/entity.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); From f7bd7d614a6804d309d16c334d820c1c5ffbc46c Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 9 Jul 2018 17:52:30 +0200 Subject: [PATCH 2/4] comment removed --- test/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) 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 From 0a76e5933d1a99e150d6d61deccc237f9a0b4790 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 9 Jul 2018 17:52:46 +0200 Subject: [PATCH 3/4] Test cases for uuid --- test/test_seller.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 From 1cee27ca70cdc9adea4de808fc4a075f5ec02f62 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 9 Jul 2018 20:09:30 +0200 Subject: [PATCH 4/4] added cmaketools config file --- .vscode/.cmaketools.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .vscode/.cmaketools.json 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