test/test_talker.cpp
TEST(TESTSuite, testServiceRun) {
  ros::NodeHandle n;
  ros::ServiceClient client =
  n.serviceClient<beginner_tutorials::change_string>(
      "change_string");
  beginner_tutorials::change_string srv;
  srv.request.input = "new_string";
  client.call(srv);
  EXPECT_STREQ("new_string", srv.response.output.c_str());
}
/**
 * @brief Test case to check the execution of the change_string service
 * @param none
 * @return none
 */
@brief Test case to check the execution of the change_string service
@param none
@return none
@brief Test case to check the execution of the change_string service @param none @return none
TEST(TESTSuite, testServiceRun) {
  ros::NodeHandle n;
  ros::ServiceClient client =
  n.serviceClient<beginner_tutorials::change_string>(
      "change_string");
  beginner_tutorials::change_string srv;
  srv.request.input = "new_string";
  client.call(srv);
  EXPECT_STREQ("new_string", srv.response.output.c_str());
}
TEST ( TESTSuite , testServiceRun ) { ros :: NodeHandle n ; ros :: ServiceClient client = n . serviceClient < beginner_tutorials :: change_string > ( " " ) ; beginner_tutorials :: change_string srv ; srv . request . input = " " ; client . call ( srv ) ; EXPECT_STREQ ( " " , srv . response . output . c_str ( ) ) ; }
@brief Test case to check the execution of the change_string service
 @param none
 @return none
@brief Test case to check the execution of the change_string service @param none @return none