Skip to content

Commit

Permalink
use EXPECT_THAT mock matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed May 8, 2024
1 parent 56e69d8 commit 35cf9c5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions OdbDesignTests/TestTests.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#include <gtest/gtest.h>
#include <gmock/gmock.h>
//#include <gmock/gmock.h>
#include "Fixtures/TestDataFixture.h"
#include <filesystem>
#include <gmock/gmock-more-matchers.h>
#include <gmock/gmock-matchers.h>
#include "Fixtures/FileArchiveLoadFixture.h"

using namespace std::filesystem;
using namespace Odb::Test::Fixtures;
Expand All @@ -27,8 +30,7 @@ namespace Odb::Test
}

TEST_F(TestDataFixture, TestDataDirEnvironmentVariablesExists)
{
//ASSERT_FALSE(getTestDataDir().empty());
{
EXPECT_THAT(getTestDataDir().string(), Not(IsEmpty()));
}

Expand All @@ -46,7 +48,7 @@ namespace Odb::Test

TEST_F(TestDataFixture, TestDataFilesDirDirectoryExists)
{
ASSERT_FALSE(getTestDataFilesDir().empty());
EXPECT_THAT(getTestDataFilesDir().string(), Not(IsEmpty()));
EXPECT_TRUE(exists(getTestDataFilesDir()));
}
}

0 comments on commit 35cf9c5

Please sign in to comment.