eive-obsw/unittest/controller/testConfigFileHandler.cpp
petriVM18 c4b8fa5444
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
Merged from development, added unit test for config file handler, removed obsolete stuff from handler
2022-07-05 10:02:43 +02:00

20 lines
501 B
C++

#include <mission/utility/GlobalConfigHandler.h>
#include <catch2/catch_test_macros.hpp>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include "../testEnvironment.h"
#include <objects/systemObjectList.h>
TEST_CASE("Configfile Handler", "[ConfigHandler]") {
GlobalConfigHandler confighandler= GlobalConfigHandler(objects::CONFIG_TEST,"JSON.config");
sif::debug<<"Testcase config file handler"<<std::endl;
REQUIRE(confighandler.initialize() == HasReturnvaluesIF::RETURN_OK);
}