Skip to content

Commit

Permalink
Migrate VssDatabaseTests to common timestamp test utility
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schildt <[email protected]>
  • Loading branch information
SebastianSchildt committed May 4, 2021
1 parent 133233e commit b08ab16
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unit-test/VssDatabaseTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <turtle/mock.hpp>
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS

#include "UnitTestHelpers.hpp"

#include <memory>
#include <string>

Expand Down Expand Up @@ -190,6 +192,9 @@ BOOST_AUTO_TEST_CASE(Given_ValidVssFilenameAndChannelAuthorized_When_GetSingleSi
// verify

BOOST_CHECK_NO_THROW(returnJson = db->getSignal(signalPath));

verify_timestamp(expectedJson, returnJson);

BOOST_TEST(returnJson == expectedJson);
}

Expand All @@ -208,6 +213,9 @@ BOOST_AUTO_TEST_CASE(Given_ValidVssFilenameAndChannelAuthorized_When_GetBranch_S
// verify

BOOST_CHECK_NO_THROW(returnJson = db->getSignal(signalPath));

verify_timestamp(expectedJson, returnJson);

BOOST_TEST(returnJson == expectedJson);
}

Expand Down

0 comments on commit b08ab16

Please sign in to comment.