Skip to content
Snippets Groups Projects
Commit 370e7d9e authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Add tests

parent c81373b9
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ armarx_enable_aron_file_generation_for_target(
# add unit tests
# add_subdirectory(test)
add_subdirectory(test)
#generate the application
armarx_generate_and_add_component_executable()
......
......@@ -27,11 +27,33 @@
#include <RobotAPI/Test.h>
#include "../ArMemExampleMemory.h"
#include <RobotAPI/components/armem/ArMemExampleMemory/aron/ExampleData.aron.generated.h>
#include <RobotAPI/libraries/armem/core.h>
#include <iostream>
BOOST_AUTO_TEST_CASE(testExample)
using armarx::armem::aron::example::ExampleData;
namespace armem = armarx::armem;
/*
BOOST_AUTO_TEST_CASE(test_ExampleData)
{
ExampleData data;
BOOST_CHECK(true);
}
*/
BOOST_AUTO_TEST_CASE(test_ExampleData_type)
{
armarx::ArMemExampleMemory instance;
armarx::aron::typenavigator::AronObjectTypeNavigatorPtr type = ExampleData::toInitialAronType();
BOOST_CHECK_EQUAL(type->getAcceptedTypes().size(), 15);
armem::Memory memory;
armem::CoreSegment& core = memory.addCoreSegment("ExampleData", type);
armem::ProviderSegment& prov = core.addProviderSegment("Provider");
BOOST_CHECK_EQUAL(true, true);
BOOST_CHECK_EQUAL(core.aronType(), prov.aronType());
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment