Commit d36c01e4 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Add tests for audibiliy filter interface - WIP

parent 33c5ab04
......@@ -20,6 +20,7 @@ set( ProjectSources "all_tests.cpp"
"test_classes.hpp"
"replacement_filter_test.cpp"
"worker_interface_test.cpp"
"audibility_filter_interface_test.cpp"
)
add_executable( all_tests ${ProjectSources} )
......
#include <ITA/simulation_scheduler/audibility_filter/audibility_filter_interface.h>
#include "mocks.hpp"
// GTest
#include "gtest/gtest.h"
using namespace ITA::simulation_scheduler;
using namespace audibility_filter;
TEST (FilterFactoryTest, addNewFilterType)
{
CAudibilityFilterFactory::registerFilter ( "MockFilter", MockAudibilityFilter::createFilter );
IAudibilityFilter::AudibilityFilterConfig config;
config.SetValueInSubList ( "Audible", "Mock", true );
const auto filter = CAudibilityFilterFactory::createFilter ( config );
ASSERT_NE ( filter, nullptr );
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment