test_class.file: dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/command/CommandContextFactoryTest.java
test_class.identifier: CommandContextFactoryTest
test_case.body: @Test
      public void testNewInstance() throws Exception {
          CommandContext context = CommandContextFactory.newInstance("test");
          assertThat(context.getCommandName(), equalTo("test"));
          context = CommandContextFactory.newInstance("command", new String[]{"hello"}, true);
          assertThat(context.getCommandName(), equalTo("command"));
          assertThat(context.getArgs(), Matchers.arrayContaining("hello"));
          assertTrue(context.isHttp());
      }
test_case.class_method_signature: CommandContextFactoryTest.testNewInstance()
test_case.full_signature: @Test public void testNewInstance()
test_case.identifier: testNewInstance
test_case.invocations: newInstance assertThat getCommandName equalTo newInstance assertThat getCommandName equalTo assertThat getArgs arrayContaining assertTrue isHttp
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNewInstance()
focal_class.file: dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/command/CommandContextFactory.java
focal_class.identifier: CommandContextFactory
focal_class.class_method_signature: CommandContextFactory.newInstance(String commandName)
focal_class.full_signature: public static CommandContext newInstance(String commandName)
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: (String commandName)
focal_class.return: CommandContext
focal_class.signature: CommandContext newInstance(String commandName)
focal_class.class_method_signature: CommandContextFactory.newInstance(String commandName, String[] args,boolean isHttp)
focal_class.full_signature: public static CommandContext newInstance(String commandName, String[] args,boolean isHttp)
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: (String commandName, String[] args,boolean isHttp)
focal_class.return: CommandContext
focal_class.signature: CommandContext newInstance(String commandName, String[] args,boolean isHttp)
focal_method.body: public static CommandContext newInstance(String commandName){
          return new CommandContext(commandName);
      }
focal_method.class_method_signature: CommandContextFactory.newInstance(String commandName)
focal_method.full_signature: public static CommandContext newInstance(String commandName)
focal_method.identifier: newInstance
focal_method.modifiers: public static
focal_method.parameters: (String commandName)
focal_method.return: CommandContext
focal_method.signature: CommandContext newInstance(String commandName)