test_class.file: dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/command/DefaultCommandExecutorTest.java
test_class.identifier: DefaultCommandExecutorTest
test_case.body: @Test
      public void testExecute2() throws Exception {
          DefaultCommandExecutor executor = new DefaultCommandExecutor();
          String result = executor.execute(CommandContextFactory.newInstance("greeting", new String[]{"dubbo"}, false));
          assertThat(result, equalTo("greeting dubbo"));
      }
test_case.class_method_signature: DefaultCommandExecutorTest.testExecute2()
test_case.full_signature: @Test public void testExecute2()
test_case.identifier: testExecute2
test_case.invocations: execute newInstance assertThat equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExecute2()
focal_class.file: dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/command/DefaultCommandExecutor.java
focal_class.identifier: DefaultCommandExecutor
focal_class.interfaces: implements CommandExecutor
focal_class.class_method_signature: DefaultCommandExecutor.execute(CommandContext commandContext)
focal_class.full_signature: @Override public String execute(CommandContext commandContext)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (CommandContext commandContext)
focal_class.return: String
focal_class.signature: String execute(CommandContext commandContext)
focal_method.body: @Override
      public String execute(CommandContext commandContext) throws NoSuchCommandException {
          BaseCommand command = null;
          try {
              command = ExtensionLoader.getExtensionLoader(BaseCommand.class).getExtension(commandContext.getCommandName());
          } catch (Throwable throwable) {
                  //can't find command
          }
          if (command == null) {
              throw new NoSuchCommandException(commandContext.getCommandName());
          }
          return command.execute(commandContext, commandContext.getArgs());
      }
focal_method.class_method_signature: DefaultCommandExecutor.execute(CommandContext commandContext)
focal_method.full_signature: @Override public String execute(CommandContext commandContext)
focal_method.identifier: execute
focal_method.invocations: getExtension getExtensionLoader getCommandName getCommandName execute getArgs
focal_method.modifiers: @Override public
focal_method.parameters: (CommandContext commandContext)
focal_method.return: String
focal_method.signature: String execute(CommandContext commandContext)