test_class.declarator: stepVisitor
test_class.modifier: private
test_class.original_string: private StepVisitor stepVisitor;
test_class.type: StepVisitor
test_class.var_name: stepVisitor
test_class.declarator: allStepsPageRenderer
test_class.modifier: private
test_class.original_string: private AllStepsPageRenderer allStepsPageRenderer;
test_class.type: AllStepsPageRenderer
test_class.var_name: allStepsPageRenderer
test_class.file: plugin-code/src/test/java/com/trivago/cluecumber/rendering/pages/visitors/StepVisitorTest.java
test_class.identifier: StepVisitorTest
test_class.superclass: extends VisitorTest
test_case.body: @Test
      public void visitTest() throws CluecumberPluginException {
          when(allStepsPageRenderer.getRenderedContent(any(), any())).thenReturn("MyRenderedSteps");
          when(allScenariosPageRenderer.getRenderedContentByStepFilter(any(), any(), any())).thenReturn("MyRenderedScenarios");
          stepVisitor.visit(getAllScenarioPageCollection());
          verify(fileIo, times(1))
                  .writeContentToFile("MyRenderedSteps", "dummyPath/pages/step-summary.html");
          verify(fileIo, times(1))
                  .writeContentToFile("MyRenderedScenarios", "dummyPath/pages/step-scenarios/step_31.html");
      }
test_case.class_method_signature: StepVisitorTest.visitTest()
test_case.full_signature: @Test public void visitTest()
test_case.identifier: visitTest
test_case.invocations: thenReturn when getRenderedContent any any thenReturn when getRenderedContentByStepFilter any any any visit getAllScenarioPageCollection writeContentToFile verify times writeContentToFile verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void visitTest()
focal_class.declarator: fileIO
focal_class.modifier: private final
focal_class.original_string: private final FileIO fileIO;
focal_class.type: FileIO
focal_class.var_name: fileIO
focal_class.declarator: templateEngine
focal_class.modifier: private final
focal_class.original_string: private final TemplateEngine templateEngine;
focal_class.type: TemplateEngine
focal_class.var_name: templateEngine
focal_class.declarator: propertyManager
focal_class.modifier: private final
focal_class.original_string: private final PropertyManager propertyManager;
focal_class.type: PropertyManager
focal_class.var_name: propertyManager
focal_class.declarator: allStepsPageRenderer
focal_class.modifier: private final
focal_class.original_string: private final AllStepsPageRenderer allStepsPageRenderer;
focal_class.type: AllStepsPageRenderer
focal_class.var_name: allStepsPageRenderer
focal_class.declarator: allScenariosPageRenderer
focal_class.modifier: private final
focal_class.original_string: private final AllScenariosPageRenderer allScenariosPageRenderer;
focal_class.type: AllScenariosPageRenderer
focal_class.var_name: allScenariosPageRenderer
focal_class.file: plugin-code/src/main/java/com/trivago/cluecumber/rendering/pages/visitors/StepVisitor.java
focal_class.identifier: StepVisitor
focal_class.interfaces: implements PageVisitor
focal_class.class_method_signature: StepVisitor.StepVisitor(
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final AllStepsPageRenderer allStepsPageRenderer,
              final AllScenariosPageRenderer allScenariosPageRenderer
      )
focal_class.full_signature: @Inject public  StepVisitor(
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final AllStepsPageRenderer allStepsPageRenderer,
              final AllScenariosPageRenderer allScenariosPageRenderer
      )
focal_class.identifier: StepVisitor
focal_class.modifiers: @Inject public
focal_class.parameters: (
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final AllStepsPageRenderer allStepsPageRenderer,
              final AllScenariosPageRenderer allScenariosPageRenderer
      )
focal_class.signature:  StepVisitor(
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final AllStepsPageRenderer allStepsPageRenderer,
              final AllScenariosPageRenderer allScenariosPageRenderer
      )
focal_class.class_method_signature: StepVisitor.visit(final AllScenariosPageCollection allScenariosPageCollection)
focal_class.full_signature: @Override public void visit(final AllScenariosPageCollection allScenariosPageCollection)
focal_class.identifier: visit
focal_class.modifiers: @Override public
focal_class.parameters: (final AllScenariosPageCollection allScenariosPageCollection)
focal_class.return: void
focal_class.signature: void visit(final AllScenariosPageCollection allScenariosPageCollection)
focal_method.body: @Override
      public void visit(final AllScenariosPageCollection allScenariosPageCollection) throws CluecumberPluginException {
          AllStepsPageCollection allStepsPageCollection = new AllStepsPageCollection(
                  allScenariosPageCollection.getReports(), propertyManager.getCustomPageTitle()
          );
  
          // All steps page
          fileIO.writeContentToFile(
                  allStepsPageRenderer.getRenderedContent(
                          allStepsPageCollection,
                          templateEngine.getTemplate(ALL_STEPS)
                  ),
                  propertyManager.getGeneratedHtmlReportDirectory() + "/" + PluginSettings.PAGES_DIRECTORY + "/" +
                          PluginSettings.STEP_SUMMARY_PAGE_PATH + PluginSettings.HTML_FILE_EXTENSION);
  
          // Scenarios by step pages
          for (Step step : allStepsPageCollection.getSteps()) {
              fileIO.writeContentToFile(
                      allScenariosPageRenderer.getRenderedContentByStepFilter(
                              allScenariosPageCollection, templateEngine.getTemplate(ALL_SCENARIOS), step),
                      propertyManager.getGeneratedHtmlReportDirectory() + "/" +
                              PluginSettings.PAGES_DIRECTORY + PluginSettings.STEP_SCENARIO_PAGE_FRAGMENT +
                              step.getUrlFriendlyName() + PluginSettings.HTML_FILE_EXTENSION);
          }
      }
focal_method.class_method_signature: StepVisitor.visit(final AllScenariosPageCollection allScenariosPageCollection)
focal_method.full_signature: @Override public void visit(final AllScenariosPageCollection allScenariosPageCollection)
focal_method.identifier: visit
focal_method.invocations: getReports getCustomPageTitle writeContentToFile getRenderedContent getTemplate getGeneratedHtmlReportDirectory getSteps writeContentToFile getRenderedContentByStepFilter getTemplate getGeneratedHtmlReportDirectory getUrlFriendlyName
focal_method.modifiers: @Override public
focal_method.parameters: (final AllScenariosPageCollection allScenariosPageCollection)
focal_method.return: void
focal_method.signature: void visit(final AllScenariosPageCollection allScenariosPageCollection)