From 2e4d1d717e09e5759e679d7b80eddb07d7910193 Mon Sep 17 00:00:00 2001 From: Sebastian Jahr Date: Fri, 6 Oct 2023 12:56:13 +0200 Subject: [PATCH] Extend unittest --- core/test/test_pipeline_planner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/test/test_pipeline_planner.cpp b/core/test/test_pipeline_planner.cpp index 347d0b572..6f19a18b8 100644 --- a/core/test/test_pipeline_planner.cpp +++ b/core/test/test_pipeline_planner.cpp @@ -23,6 +23,7 @@ TEST_F(PipelinePlannerTest, testInitialization) { // WHEN a PipelinePlanner instance is initialized // THEN it does not throw EXPECT_NO_THROW(pipeline_planner.init(robot_model)); + EXPECT_EQ(pipeline_planner.getPlannerId(), "Unknown"); } TEST_F(PipelinePlannerTest, testWithoutPlanningPipelines) { @@ -44,6 +45,7 @@ TEST_F(PipelinePlannerTest, testValidPlan) { std::make_shared(robot_model, robot_model->getJointModelGroup("group")); // THEN it returns true EXPECT_TRUE(pipeline_planner.plan(scene, scene, robot_model->getJointModelGroup("group"), 1.0, result)); + EXPECT_EQ(pipeline_planner.getPlannerId(), "stomp"); } TEST_F(PipelinePlannerTest, testInvalidPipelineID) {