Compare commits
No commits in common. "1cee27ca70cdc9adea4de808fc4a075f5ec02f62" and "39ab4b180ebc197de024b9372dac5217558d57ed" have entirely different histories.
1cee27ca70
...
39ab4b180e
5 changed files with 5 additions and 15 deletions
5
.vscode/.cmaketools.json
vendored
5
.vscode/.cmaketools.json
vendored
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"variant": null,
|
||||
"activeEnvironments": [],
|
||||
"codeModel": null
|
||||
}
|
|
@ -5,7 +5,7 @@
|
|||
#include <boost/uuid/uuid_generators.hpp>
|
||||
#include <boost/uuid/uuid_io.hpp>
|
||||
|
||||
//Entity::Entity() {}
|
||||
Entity::Entity() {}
|
||||
|
||||
void Entity::createUuid()
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue