Commit 580a58a5 authored by Bergé's avatar Bergé

Increase the coverage (include/dynamic-graph/Entity.h -> 100%)

Add on test/Entity.h the virtual function (Entity::getClassName)
Signed-off-by: default avatarBergé <corentin.berge@outlook.fr>
parent 123386e9
......@@ -50,8 +50,8 @@ BOOST_AUTO_TEST_CASE (constructor)
dynamicgraph::FactoryStorage::getInstance()->
newEntity("CustomEntity", "my-entity");
BOOST_CHECK_EQUAL (entity->getName (), "my-entity");
BOOST_CHECK_EQUAL (entity->Entity::getClassName (), "Entity");
BOOST_CHECK_EQUAL (entity->getClassName (), CustomEntity::CLASS_NAME);
//CustomEntity entity2 ("");
// Deregister entities before destroying them
dynamicgraph::PoolStorage::destroy();
......
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