From bd46d8936ee989aeec61dc32d432d0df58c2c082 Mon Sep 17 00:00:00 2001 From: Hugo Aboud Date: Sun, 12 Jan 2025 00:47:56 -0300 Subject: [PATCH] Update tests to the latest oatpp 1.4.0 API --- test/tests.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/tests.cpp b/test/tests.cpp index fdf33aa..865512b 100644 --- a/test/tests.cpp +++ b/test/tests.cpp @@ -10,7 +10,7 @@ class Test : public oatpp::test::UnitTest { {} void onRun() override { - OATPP_LOGD(TAG, "Hello Test"); + OATPP_LOGd(TAG, "Hello Test"); // TODO write correct tests } }; @@ -23,19 +23,19 @@ void runTests() { int main() { - oatpp::base::Environment::init(); + oatpp::Environment::init(); runTests(); /* Print how much objects were created during app running, and what have left-probably leaked */ /* Disable object counting for release builds using '-D OATPP_DISABLE_ENV_OBJECT_COUNTERS' flag for better performance */ std::cout << "\nEnvironment:\n"; - std::cout << "objectsCount = " << oatpp::base::Environment::getObjectsCount() << "\n"; - std::cout << "objectsCreated = " << oatpp::base::Environment::getObjectsCreated() << "\n\n"; + std::cout << "objectsCount = " << oatpp::Environment::getObjectsCount() << "\n"; + std::cout << "objectsCreated = " << oatpp::Environment::getObjectsCreated() << "\n\n"; - OATPP_ASSERT(oatpp::base::Environment::getObjectsCount() == 0); + OATPP_ASSERT(oatpp::Environment::getObjectsCount() == 0); - oatpp::base::Environment::destroy(); + oatpp::Environment::destroy(); return 0; }