test_class.declarator: dncPipelineService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DNCPipelineService dncPipelineService;
test_class.type: DNCPipelineService
test_class.var_name: dncPipelineService
test_class.declarator: commandCreateModeFromFile
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private CommandCreateModeFromFile commandCreateModeFromFile;
test_class.type: CommandCreateModeFromFile
test_class.var_name: commandCreateModeFromFile
test_class.file: pipeline/src/test/java/uk/ac/kcl/iop/brc/core/pipeline/dncpipeline/commandline/CommandCreateModeFromFileTest.java
test_class.identifier: CommandCreateModeFromFileTest
test_case.body: @Test
      public void shouldCallPipelineServiceWhenFilePathIsGiven() {
          CommandLine cmd = mock(CommandLine.class);
          when(cmd.getOptionValue("file")).thenReturn("path/to/file");
  
          commandCreateModeFromFile.process(cmd);
  
          verify(dncPipelineService).startCreateModeWithFile("path/to/file");
      }
test_case.class_method_signature: CommandCreateModeFromFileTest.shouldCallPipelineServiceWhenFilePathIsGiven()
test_case.full_signature: @Test public void shouldCallPipelineServiceWhenFilePathIsGiven()
test_case.identifier: shouldCallPipelineServiceWhenFilePathIsGiven
test_case.invocations: mock thenReturn when getOptionValue process startCreateModeWithFile verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldCallPipelineServiceWhenFilePathIsGiven()
focal_class.declarator: dncPipelineService
focal_class.modifier: @Autowired
      public
focal_class.original_string: @Autowired
      public DNCPipelineService dncPipelineService;
focal_class.type: DNCPipelineService
focal_class.var_name: dncPipelineService
focal_class.file: pipeline/src/main/java/uk/ac/kcl/iop/brc/core/pipeline/dncpipeline/commandline/CommandCreateModeFromFile.java
focal_class.identifier: CommandCreateModeFromFile
focal_class.interfaces: implements CommandProcessor
focal_class.class_method_signature: CommandCreateModeFromFile.isResponsibleFor(CommandLine cmd)
focal_class.full_signature: @Override public boolean isResponsibleFor(CommandLine cmd)
focal_class.identifier: isResponsibleFor
focal_class.modifiers: @Override public
focal_class.parameters: (CommandLine cmd)
focal_class.return: boolean
focal_class.signature: boolean isResponsibleFor(CommandLine cmd)
focal_class.class_method_signature: CommandCreateModeFromFile.process(CommandLine cmd)
focal_class.full_signature: @Override public void process(CommandLine cmd)
focal_class.identifier: process
focal_class.modifiers: @Override public
focal_class.parameters: (CommandLine cmd)
focal_class.return: void
focal_class.signature: void process(CommandLine cmd)
focal_class.class_method_signature: CommandCreateModeFromFile.addOption(Options options)
focal_class.full_signature: @Override public void addOption(Options options)
focal_class.identifier: addOption
focal_class.modifiers: @Override public
focal_class.parameters: (Options options)
focal_class.return: void
focal_class.signature: void addOption(Options options)
focal_method.body: @Override
      public void process(CommandLine cmd) {
          String filePath = cmd.getOptionValue("file");
  
          if (StringUtils.isEmpty(filePath)) {
              throw new IllegalArgumentException("File argument must be specified.");
          }
  
          if (cmd.hasOption("noPseudonym")) {
              dncPipelineService.getCommandLineArgHolder().setNoPseudonym(true);
          }
  
          dncPipelineService.startCreateModeWithFile(filePath);
      }
focal_method.class_method_signature: CommandCreateModeFromFile.process(CommandLine cmd)
focal_method.full_signature: @Override public void process(CommandLine cmd)
focal_method.identifier: process
focal_method.invocations: getOptionValue isEmpty hasOption setNoPseudonym getCommandLineArgHolder startCreateModeWithFile
focal_method.modifiers: @Override public
focal_method.parameters: (CommandLine cmd)
focal_method.return: void
focal_method.signature: void process(CommandLine cmd)