test_class.file: dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/command/impl/HelpTest.java
test_class.identifier: HelpTest
test_case.body: @Test
      public void testGreeting() throws Exception {
          Help help = new Help();
          String output = help.execute(Mockito.mock(CommandContext.class), new String[]{"greeting"});
          assertThat(output, containsString("COMMAND NAME"));
          assertThat(output, containsString("greeting"));
          assertThat(output, containsString("EXAMPLE"));
          assertThat(output, containsString("greeting dubbo"));
      }
test_case.class_method_signature: HelpTest.testGreeting()
test_case.full_signature: @Test public void testGreeting()
test_case.identifier: testGreeting
test_case.invocations: execute mock assertThat containsString assertThat containsString assertThat containsString assertThat containsString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGreeting()
focal_class.file: dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/command/impl/Help.java
focal_class.identifier: Help
focal_class.interfaces: implements BaseCommand
focal_class.class_method_signature: Help.execute(CommandContext commandContext, String[] args)
focal_class.full_signature: @Override public String execute(CommandContext commandContext, String[] args)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (CommandContext commandContext, String[] args)
focal_class.return: String
focal_class.signature: String execute(CommandContext commandContext, String[] args)
focal_class.class_method_signature: Help.commandHelp(String commandName)
focal_class.full_signature: private String commandHelp(String commandName)
focal_class.identifier: commandHelp
focal_class.modifiers: private
focal_class.parameters: (String commandName)
focal_class.return: String
focal_class.signature: String commandHelp(String commandName)
focal_class.class_method_signature: Help.drawExample(Cmd cmd)
focal_class.full_signature: private String drawExample(Cmd cmd)
focal_class.identifier: drawExample
focal_class.modifiers: private
focal_class.parameters: (Cmd cmd)
focal_class.return: String
focal_class.signature: String drawExample(Cmd cmd)
focal_class.class_method_signature: Help.mainHelp()
focal_class.full_signature: private String mainHelp()
focal_class.identifier: mainHelp
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String mainHelp()
focal_method.body: @Override
      public String execute(CommandContext commandContext, String[] args) {
          if (args != null && args.length > 0) {
              return commandHelp(args[0]);
          } else {
              return mainHelp();
          }
  
      }
focal_method.class_method_signature: Help.execute(CommandContext commandContext, String[] args)
focal_method.full_signature: @Override public String execute(CommandContext commandContext, String[] args)
focal_method.identifier: execute
focal_method.invocations: commandHelp mainHelp
focal_method.modifiers: @Override public
focal_method.parameters: (CommandContext commandContext, String[] args)
focal_method.return: String
focal_method.signature: String execute(CommandContext commandContext, String[] args)