Skip to content
Snippets Groups Projects
Commit 219a63bc authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

Rename references to test_data files in tests

parent 7967fb69
No related branches found
No related tags found
2 merge requests!61Release 0.3.0,!55Rename caosdb-cpplib to linkahead-cpplib
...@@ -55,19 +55,19 @@ TEST_F(test_configuration, get_default_connection_configuration_error) { ...@@ -55,19 +55,19 @@ TEST_F(test_configuration, get_default_connection_configuration_error) {
"This LinkAhead client has not been configured."); "This LinkAhead client has not been configured.");
ConfigurationManager::LoadSingleJSONConfiguration( ConfigurationManager::LoadSingleJSONConfiguration(
TEST_DATA_DIR + "/test_broken_caosdb_client_no_connections1.json"); TEST_DATA_DIR + "/test_broken_linkahead_client_no_connections1.json");
EXPECT_THROW_MESSAGE(ConfigurationManager::GetDefaultConnectionName(), ConfigurationError, EXPECT_THROW_MESSAGE(ConfigurationManager::GetDefaultConnectionName(), ConfigurationError,
"This LinkAhead client hasn't any configured connections."); "This LinkAhead client hasn't any configured connections.");
ConfigurationManager::Clear(); ConfigurationManager::Clear();
ConfigurationManager::LoadSingleJSONConfiguration( ConfigurationManager::LoadSingleJSONConfiguration(
TEST_DATA_DIR + "/test_broken_caosdb_client_no_connections2.json"); TEST_DATA_DIR + "/test_broken_linkahead_client_no_connections2.json");
EXPECT_THROW_MESSAGE(ConfigurationManager::GetDefaultConnectionName(), ConfigurationError, EXPECT_THROW_MESSAGE(ConfigurationManager::GetDefaultConnectionName(), ConfigurationError,
"This LinkAhead client hasn't any configured connections."); "This LinkAhead client hasn't any configured connections.");
ConfigurationManager::Clear(); ConfigurationManager::Clear();
ConfigurationManager::LoadSingleJSONConfiguration( ConfigurationManager::LoadSingleJSONConfiguration(
TEST_DATA_DIR + "/test_broken_caosdb_client_no_connections3.json"); TEST_DATA_DIR + "/test_broken_linkahead_client_no_connections3.json");
EXPECT_THROW_MESSAGE(ConfigurationManager::GetDefaultConnectionName(), ConfigurationError, EXPECT_THROW_MESSAGE(ConfigurationManager::GetDefaultConnectionName(), ConfigurationError,
"This LinkAhead client hasn't any configured connections."); "This LinkAhead client hasn't any configured connections.");
ConfigurationManager::Clear(); ConfigurationManager::Clear();
......
...@@ -47,7 +47,7 @@ class test_connection : public ::testing::Test { ...@@ -47,7 +47,7 @@ class test_connection : public ::testing::Test {
protected: protected:
void SetUp() override { void SetUp() override {
ConfigurationManager::Clear(); ConfigurationManager::Clear();
ConfigurationManager::LoadSingleJSONConfiguration(TEST_DATA_DIR + "/test_caosdb_client.json"); ConfigurationManager::LoadSingleJSONConfiguration(TEST_DATA_DIR + "/test_linkahead_client.json");
}; };
void TearDown() override { ConfigurationManager::Clear(); }; void TearDown() override { ConfigurationManager::Clear(); };
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment