test_class.file: legacy/src/test/java/macrobase/runtime/command/MacroBasePipelineCommandTest.java
test_class.identifier: MacroBasePipelineCommandTest
test_case.body: @Test
      public void testPipelineRuns() throws Exception {
          MacroBaseConf conf = new MacroBaseConf();
  
          conf.set(MacroBaseConf.PIPELINE_NAME, "macrobase.runtime.command.MacroBasePipelineCommandTest");
          MacroBasePipelineCommand cmd1 = new MacroBasePipelineCommand();
          cmd1.run(null, new Namespace(new HashMap<>()), conf);
  
          assertFalse(MacroBaseMockPipeline.initialized);
          TestCase.assertFalse(MacroBaseMockPipeline.ran);
  
          conf.set(MacroBaseConf.PIPELINE_NAME, "macrobase.runtime.command.MacroBaseMockPipeline");
  
          MacroBasePipelineCommand cmd2 = new MacroBasePipelineCommand();
          cmd2.run(null, new Namespace(new HashMap<>()), conf);
  
          assertTrue(MacroBaseMockPipeline.initialized);
          assertTrue(MacroBaseMockPipeline.ran);
  
          MacroBaseMockPipeline.initialized = false;
          MacroBaseMockPipeline.ran = false;
  
          MacroBasePipelineCommand cmd3 = new MacroBasePipelineCommand();
          cmd3.run(null, new Namespace(new HashMap<>()), conf);
  
          assertTrue(MacroBaseMockPipeline.initialized);
          assertTrue(MacroBaseMockPipeline.ran);
      }
test_case.class_method_signature: MacroBasePipelineCommandTest.testPipelineRuns()
test_case.full_signature: @Test public void testPipelineRuns()
test_case.identifier: testPipelineRuns
test_case.invocations: set run assertFalse assertFalse set run assertTrue assertTrue run assertTrue assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPipelineRuns()
focal_class.declarator: log = LoggerFactory.getLogger(MacroBasePipelineCommand.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(MacroBasePipelineCommand.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: legacy/src/main/java/macrobase/runtime/command/MacroBasePipelineCommand.java
focal_class.identifier: MacroBasePipelineCommand
focal_class.class_method_signature: MacroBasePipelineCommand.MacroBasePipelineCommand()
focal_class.full_signature: public  MacroBasePipelineCommand()
focal_class.identifier: MacroBasePipelineCommand
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  MacroBasePipelineCommand()
focal_class.class_method_signature: MacroBasePipelineCommand.run(Bootstrap<MacroBaseConf> bootstrap,
                         Namespace namespace,
                         MacroBaseConf configuration)
focal_class.full_signature: @Override protected void run(Bootstrap<MacroBaseConf> bootstrap,
                         Namespace namespace,
                         MacroBaseConf configuration)
focal_class.identifier: run
focal_class.modifiers: @Override protected
focal_class.parameters: (Bootstrap<MacroBaseConf> bootstrap,
                         Namespace namespace,
                         MacroBaseConf configuration)
focal_class.return: void
focal_class.signature: void run(Bootstrap<MacroBaseConf> bootstrap,
                         Namespace namespace,
                         MacroBaseConf configuration)
focal_class.superclass: extends ConfiguredCommand<MacroBaseConf>
focal_method.body: @Override
      protected void run(Bootstrap<MacroBaseConf> bootstrap,
                         Namespace namespace,
                         MacroBaseConf configuration) throws Exception {
          configuration.loadSystemProperties();
          Class c = Class.forName(configuration.getString(MacroBaseConf.PIPELINE_NAME));
          Object ao = c.newInstance();
  
          if (!(ao instanceof Pipeline)) {
              log.error("{} is not an instance of Pipeline! Exiting...");
              return;
          }
  
          List<AnalysisResult> results = ((Pipeline) ao).initialize(configuration).run();
  
          MacroBase.reporter.report();
  
          log.info("Result: {}", results);
      }
focal_method.class_method_signature: MacroBasePipelineCommand.run(Bootstrap<MacroBaseConf> bootstrap,
                         Namespace namespace,
                         MacroBaseConf configuration)
focal_method.full_signature: @Override protected void run(Bootstrap<MacroBaseConf> bootstrap,
                         Namespace namespace,
                         MacroBaseConf configuration)
focal_method.identifier: run
focal_method.invocations: loadSystemProperties forName getString newInstance error run initialize report info
focal_method.modifiers: @Override protected
focal_method.parameters: (Bootstrap<MacroBaseConf> bootstrap,
                         Namespace namespace,
                         MacroBaseConf configuration)
focal_method.return: void
focal_method.signature: void run(Bootstrap<MacroBaseConf> bootstrap,
                         Namespace namespace,
                         MacroBaseConf configuration)