1212 Settings *settings;
1313 };
1414
15- // TEST_CASE_METHOD(SettingsFixture, "GetMongoPath") {
16- // Settings testSettings(configPath);
17- //
18- // const std::string& result = testSettings.getMongoPath();
19- // const std::string expected = settings->getMongoPath();
20- //
21- // REQUIRE(result == expected);
22- // }
23- //
24- // TEST_CASE_METHOD(SettingsFixture, "GetLogPath") {
25- // Settings testSettings(configPath);
26- //
27- // const std::string& result = testSettings.getLogPath();
28- // const std::string expected = settings->getLogPath();
29- //
30- // REQUIRE(result == expected);
31- // }
32-
33- // TEST_CASE_METHOD(SettingsFixture, "GetMetricsAddress") {
34- // Settings testSettings(configPath);
35- //
36- // const std::string& result = testSettings.getMetricsAddress();
37- // const std::string expected = settings->getMetricsAddress();
38- //
39- // REQUIRE(result == expected);
40- // }
41- //
42- // TEST_CASE_METHOD(SettingsFixture, "GetRoutingAddresses") {
43- // Settings testSettings(configPath);
44- //
45- // const auto& result = testSettings.getReceiverAddresses();
46- // const auto expected = settings->getReceiverAddresses();
47- //
48- // REQUIRE(result == expected);
49- // }
15+ TEST_CASE_METHOD (SettingsFixture, " GetMongoPath" ) {
16+ Settings testSettings (configPath);
17+
18+ const std::string& result = testSettings.getMongoPath ();
19+ const std::string expected = settings->getMongoPath ();
20+
21+ REQUIRE (result == expected);
22+ }
23+
24+ TEST_CASE_METHOD (SettingsFixture, " GetLogPath" ) {
25+ Settings testSettings (configPath);
26+
27+ const std::string& result = testSettings.getLogPath ();
28+ const std::string expected = settings->getLogPath ();
29+
30+ REQUIRE (result == expected);
31+ }
32+
33+ TEST_CASE_METHOD (SettingsFixture, " GetMetricsAddress" ) {
34+ Settings testSettings (configPath);
35+
36+ const std::string& result = testSettings.getMetricsAddress ();
37+ const std::string expected = settings->getMetricsAddress ();
38+
39+ REQUIRE (result == expected);
40+ }
41+
42+ TEST_CASE_METHOD (SettingsFixture, " GetReceiverAddresses" ) {
43+ Settings testSettings (configPath);
44+
45+ const auto & result = testSettings.getReceiverAddresses ();
46+ const auto expected = settings->getReceiverAddresses ();
47+
48+ REQUIRE (result == expected);
49+ }
50+
51+ TEST_CASE_METHOD (SettingsFixture, " GetSenderAddresses" ) {
52+ Settings testSettings (configPath);
53+
54+ const auto & result = testSettings.getSenderAddresses ();
55+ const auto expected = settings->getSenderAddresses ();
56+
57+ REQUIRE (result == expected);
58+ }
0 commit comments