test/test_talker.cpp
TEST(TESTSuite, testServiceExistence) {
  ros::NodeHandle n;
  ros::ServiceClient client =
  n.serviceClient<beginner_tutorials::change_string>(
      "change_string");
  bool exists(client.waitForExistence(ros::Duration(5)));
  EXPECT_TRUE(exists);
}
/**
 * @brief Test case to check the existence of the change_string service
 * @param none
 * @return none
 */
@brief Test case to check the existence of the change_string service
@param none
@return none
@brief Test case to check the existence of the change_string service @param none @return none
TEST(TESTSuite, testServiceExistence) {
  ros::NodeHandle n;
  ros::ServiceClient client =
  n.serviceClient<beginner_tutorials::change_string>(
      "change_string");
  bool exists(client.waitForExistence(ros::Duration(5)));
  EXPECT_TRUE(exists);
}
TEST ( TESTSuite , testServiceExistence ) { ros :: NodeHandle n ; ros :: ServiceClient client = n . serviceClient < beginner_tutorials :: change_string > ( " " ) ; bool exists ( client . waitForExistence ( ros :: Duration ( 5 ) ) ) ; EXPECT_TRUE ( exists ) ; }
@brief Test case to check the existence of the change_string service
 @param none
 @return none
@brief Test case to check the existence of the change_string service @param none @return none