File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ if(BUILD_TESTING)
26
26
route_parser)
27
27
28
28
target_link_libraries (test_route_handler
29
- route_handler)
29
+ route_handler
30
+ route_parser
31
+ )
30
32
31
33
endif ()
32
34
Original file line number Diff line number Diff line change 14
14
15
15
#include " test_route_handler.hpp"
16
16
17
+ #include " route_parser.hpp"
18
+
17
19
#include < rclcpp/rclcpp.hpp>
18
20
19
21
#include < gtest/gtest.h>
20
22
21
23
namespace route_handler ::test
22
24
{
23
- TEST_F (TestRouteHandler, testSomething )
25
+ TEST_F (TestRouteHandler, isRouteHandlerReadyTest )
24
26
{
25
- ASSERT_EQ (1 , 1 );
27
+ const auto planning_test_utils_dir =
28
+ ament_index_cpp::get_package_share_directory (" route_handler" );
29
+ const auto rh_test_route = planning_test_utils_dir + " /test_route/rh_test.route" ;
30
+ ASSERT_FALSE (route_handler_->isHandlerReady ());
31
+ route_handler_->setRoute (parse_route_file (rh_test_route));
32
+ ASSERT_TRUE (route_handler_->isHandlerReady ());
26
33
}
27
34
28
35
int main (int argc, char * argv[])
You can’t perform that action at this time.
0 commit comments