test_class.file: rosjava/nrosjava/src/test/java/org/ros/internal/node/xmlrpc/MasterXmlRpcEndpointImplTest.java
test_class.identifier: MasterXmlRpcEndpointImplTest
test_case.body: @Test
    public void testRegisterPublisher() throws Exception {
      MasterServer mockMaster = mock(MasterServer.class);
      final GraphName nodeName = GraphName.of("/slave");
      final URI nodeSlaveUri = new URI("http://api");
      final GraphName topicName = GraphName.of("/topic");
      final String messageType = "/topicType";
      when(
          mockMaster
              .registerPublisher(eq(nodeName), eq(nodeSlaveUri), eq(topicName), eq(messageType)))
          .thenReturn(Lists.<URI>newArrayList(nodeSlaveUri));
      MasterXmlRpcEndpointImpl master = new MasterXmlRpcEndpointImpl(mockMaster);
      List<Object> response =
          master.registerPublisher(nodeName.toString(), topicName.toString(), messageType,
              nodeSlaveUri.toString());
      assertEquals(StatusCode.SUCCESS.toInt(), response.get(0));
      assertEquals(Lists.newArrayList(nodeSlaveUri.toString()), response.get(2));
    }
test_case.class_method_signature: MasterXmlRpcEndpointImplTest.testRegisterPublisher()
test_case.full_signature: @Test public void testRegisterPublisher()
test_case.identifier: testRegisterPublisher
test_case.invocations: mock of of thenReturn when registerPublisher eq eq eq eq newArrayList registerPublisher toString toString toString assertEquals toInt get assertEquals newArrayList toString get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRegisterPublisher()
focal_class.declarator: master
focal_class.modifier: private final
focal_class.original_string: private final MasterServer master;
focal_class.type: MasterServer
focal_class.var_name: master
focal_class.declarator: parameterServer
focal_class.modifier: private final
focal_class.original_string: private final ParameterServer parameterServer;
focal_class.type: ParameterServer
focal_class.var_name: parameterServer
focal_class.file: rosjava/nrosjava/src/main/java/org/ros/internal/node/xmlrpc/MasterXmlRpcEndpointImpl.java
focal_class.identifier: MasterXmlRpcEndpointImpl
focal_class.interfaces: implements MasterXmlRpcEndpoint,
      ParameterServerXmlRpcEndpoint
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.MasterXmlRpcEndpointImpl(MasterServer master)
focal_class.full_signature: public  MasterXmlRpcEndpointImpl(MasterServer master)
focal_class.identifier: MasterXmlRpcEndpointImpl
focal_class.modifiers: public
focal_class.parameters: (MasterServer master)
focal_class.signature:  MasterXmlRpcEndpointImpl(MasterServer master)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.getPid(String callerId)
focal_class.full_signature: @Override public List<Object> getPid(String callerId)
focal_class.identifier: getPid
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId)
focal_class.return: List<Object>
focal_class.signature: List<Object> getPid(String callerId)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.getPublishedTopics(String callerId, String subgraph)
focal_class.full_signature: @Override public List<Object> getPublishedTopics(String callerId, String subgraph)
focal_class.identifier: getPublishedTopics
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String subgraph)
focal_class.return: List<Object>
focal_class.signature: List<Object> getPublishedTopics(String callerId, String subgraph)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.getTopicTypes(String callerId)
focal_class.full_signature: @Override public List<Object> getTopicTypes(String callerId)
focal_class.identifier: getTopicTypes
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId)
focal_class.return: List<Object>
focal_class.signature: List<Object> getTopicTypes(String callerId)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.getSystemState(String callerId)
focal_class.full_signature: @Override public List<Object> getSystemState(String callerId)
focal_class.identifier: getSystemState
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId)
focal_class.return: List<Object>
focal_class.signature: List<Object> getSystemState(String callerId)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.getUri(String callerId)
focal_class.full_signature: @Override public List<Object> getUri(String callerId)
focal_class.identifier: getUri
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId)
focal_class.return: List<Object>
focal_class.signature: List<Object> getUri(String callerId)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.lookupNode(String callerId, String nodeName)
focal_class.full_signature: @Override public List<Object> lookupNode(String callerId, String nodeName)
focal_class.identifier: lookupNode
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String nodeName)
focal_class.return: List<Object>
focal_class.signature: List<Object> lookupNode(String callerId, String nodeName)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.registerPublisher(String callerId, String topicName, String topicMessageType,
        String callerSlaveUri)
focal_class.full_signature: @Override public List<Object> registerPublisher(String callerId, String topicName, String topicMessageType,
        String callerSlaveUri)
focal_class.identifier: registerPublisher
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String topicName, String topicMessageType,
        String callerSlaveUri)
focal_class.return: List<Object>
focal_class.signature: List<Object> registerPublisher(String callerId, String topicName, String topicMessageType,
        String callerSlaveUri)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.unregisterPublisher(String callerId, String topicName, String callerSlaveUri)
focal_class.full_signature: @Override public List<Object> unregisterPublisher(String callerId, String topicName, String callerSlaveUri)
focal_class.identifier: unregisterPublisher
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String topicName, String callerSlaveUri)
focal_class.return: List<Object>
focal_class.signature: List<Object> unregisterPublisher(String callerId, String topicName, String callerSlaveUri)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.registerSubscriber(String callerId, String topicName,
        String topicMessageType, String callerSlaveUri)
focal_class.full_signature: @Override public List<Object> registerSubscriber(String callerId, String topicName,
        String topicMessageType, String callerSlaveUri)
focal_class.identifier: registerSubscriber
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String topicName,
        String topicMessageType, String callerSlaveUri)
focal_class.return: List<Object>
focal_class.signature: List<Object> registerSubscriber(String callerId, String topicName,
        String topicMessageType, String callerSlaveUri)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.unregisterSubscriber(String callerId, String topicName, String callerSlaveUri)
focal_class.full_signature: @Override public List<Object> unregisterSubscriber(String callerId, String topicName, String callerSlaveUri)
focal_class.identifier: unregisterSubscriber
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String topicName, String callerSlaveUri)
focal_class.return: List<Object>
focal_class.signature: List<Object> unregisterSubscriber(String callerId, String topicName, String callerSlaveUri)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.lookupService(String callerId, String serviceName)
focal_class.full_signature: @Override public List<Object> lookupService(String callerId, String serviceName)
focal_class.identifier: lookupService
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String serviceName)
focal_class.return: List<Object>
focal_class.signature: List<Object> lookupService(String callerId, String serviceName)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.registerService(String callerId, String serviceName, String serviceUri,
        String callerSlaveUri)
focal_class.full_signature: @Override public List<Object> registerService(String callerId, String serviceName, String serviceUri,
        String callerSlaveUri)
focal_class.identifier: registerService
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String serviceName, String serviceUri,
        String callerSlaveUri)
focal_class.return: List<Object>
focal_class.signature: List<Object> registerService(String callerId, String serviceName, String serviceUri,
        String callerSlaveUri)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.unregisterService(String callerId, String serviceName, String serviceUri)
focal_class.full_signature: @Override public List<Object> unregisterService(String callerId, String serviceName, String serviceUri)
focal_class.identifier: unregisterService
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String serviceName, String serviceUri)
focal_class.return: List<Object>
focal_class.signature: List<Object> unregisterService(String callerId, String serviceName, String serviceUri)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.setParam(String callerId, String key, Boolean value)
focal_class.full_signature: @Override public List<Object> setParam(String callerId, String key, Boolean value)
focal_class.identifier: setParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String key, Boolean value)
focal_class.return: List<Object>
focal_class.signature: List<Object> setParam(String callerId, String key, Boolean value)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.setParam(String callerId, String key, Integer value)
focal_class.full_signature: @Override public List<Object> setParam(String callerId, String key, Integer value)
focal_class.identifier: setParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String key, Integer value)
focal_class.return: List<Object>
focal_class.signature: List<Object> setParam(String callerId, String key, Integer value)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.setParam(String callerId, String key, Double value)
focal_class.full_signature: @Override public List<Object> setParam(String callerId, String key, Double value)
focal_class.identifier: setParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String key, Double value)
focal_class.return: List<Object>
focal_class.signature: List<Object> setParam(String callerId, String key, Double value)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.setParam(String callerId, String key, String value)
focal_class.full_signature: @Override public List<Object> setParam(String callerId, String key, String value)
focal_class.identifier: setParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String key, String value)
focal_class.return: List<Object>
focal_class.signature: List<Object> setParam(String callerId, String key, String value)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.setParam(String callerId, String key, List<?> value)
focal_class.full_signature: @Override public List<Object> setParam(String callerId, String key, List<?> value)
focal_class.identifier: setParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String key, List<?> value)
focal_class.return: List<Object>
focal_class.signature: List<Object> setParam(String callerId, String key, List<?> value)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.setParam(String callerId, String key, Map<?, ?> value)
focal_class.full_signature: @Override public List<Object> setParam(String callerId, String key, Map<?, ?> value)
focal_class.identifier: setParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String key, Map<?, ?> value)
focal_class.return: List<Object>
focal_class.signature: List<Object> setParam(String callerId, String key, Map<?, ?> value)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.getParam(String callerId, String key)
focal_class.full_signature: @Override public List<Object> getParam(String callerId, String key)
focal_class.identifier: getParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String key)
focal_class.return: List<Object>
focal_class.signature: List<Object> getParam(String callerId, String key)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.searchParam(String callerId, String key)
focal_class.full_signature: @Override public List<Object> searchParam(String callerId, String key)
focal_class.identifier: searchParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String key)
focal_class.return: List<Object>
focal_class.signature: List<Object> searchParam(String callerId, String key)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.subscribeParam(String callerId, String callerSlaveUri, String key)
focal_class.full_signature: @Override public List<Object> subscribeParam(String callerId, String callerSlaveUri, String key)
focal_class.identifier: subscribeParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String callerSlaveUri, String key)
focal_class.return: List<Object>
focal_class.signature: List<Object> subscribeParam(String callerId, String callerSlaveUri, String key)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.unsubscribeParam(String callerId, String callerSlaveUri, String key)
focal_class.full_signature: @Override public List<Object> unsubscribeParam(String callerId, String callerSlaveUri, String key)
focal_class.identifier: unsubscribeParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String callerSlaveUri, String key)
focal_class.return: List<Object>
focal_class.signature: List<Object> unsubscribeParam(String callerId, String callerSlaveUri, String key)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.deleteParam(String callerId, String key)
focal_class.full_signature: @Override public List<Object> deleteParam(String callerId, String key)
focal_class.identifier: deleteParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String key)
focal_class.return: List<Object>
focal_class.signature: List<Object> deleteParam(String callerId, String key)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.hasParam(String callerId, String key)
focal_class.full_signature: @Override public List<Object> hasParam(String callerId, String key)
focal_class.identifier: hasParam
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId, String key)
focal_class.return: List<Object>
focal_class.signature: List<Object> hasParam(String callerId, String key)
focal_class.class_method_signature: MasterXmlRpcEndpointImpl.getParamNames(String callerId)
focal_class.full_signature: @Override public List<Object> getParamNames(String callerId)
focal_class.identifier: getParamNames
focal_class.modifiers: @Override public
focal_class.parameters: (String callerId)
focal_class.return: List<Object>
focal_class.signature: List<Object> getParamNames(String callerId)
focal_method.body: @Override
    public List<Object> registerPublisher(String callerId, String topicName, String topicMessageType,
        String callerSlaveUri) {
      try {
        List<URI> subscribers =
            master.registerPublisher(GraphName.of(callerId), new URI(callerSlaveUri),
                GraphName.of(topicName), topicMessageType);
        List<String> urls = Lists.newArrayList();
        for (URI uri : subscribers) {
          urls.add(uri.toString());
        }
        return Response.newSuccess("Success", urls).toList();
      } catch (URISyntaxException e) {
        throw new RosRuntimeException(String.format("Improperly formatted URI %s for publisher",
            callerSlaveUri), e);
      }
    }
focal_method.class_method_signature: MasterXmlRpcEndpointImpl.registerPublisher(String callerId, String topicName, String topicMessageType,
        String callerSlaveUri)
focal_method.full_signature: @Override public List<Object> registerPublisher(String callerId, String topicName, String topicMessageType,
        String callerSlaveUri)
focal_method.identifier: registerPublisher
focal_method.invocations: registerPublisher of of newArrayList add toString toList newSuccess format
focal_method.modifiers: @Override public
focal_method.parameters: (String callerId, String topicName, String topicMessageType,
        String callerSlaveUri)
focal_method.return: List<Object>
focal_method.signature: List<Object> registerPublisher(String callerId, String topicName, String topicMessageType,
        String callerSlaveUri)