示例#1
0
 /**
  * Gets the channel name depending on what is set in this message sender. Either channel name is
  * set directly or channel object is consulted for channel name.
  *
  * @return the channel name.
  */
 protected String getDestinationChannelName() {
   if (endpointConfiguration.getChannel() != null) {
     return endpointConfiguration.getChannel().toString();
   } else if (StringUtils.hasText(endpointConfiguration.getChannelName())) {
     return endpointConfiguration.getChannelName();
   } else {
     throw new CitrusRuntimeException(
         "Neither channel name nor channel object is set - "
             + "please specify destination channel");
   }
 }