test_class.declarator: scenarioVisitor
test_class.modifier: private
test_class.original_string: private ScenarioVisitor scenarioVisitor;
test_class.type: ScenarioVisitor
test_class.var_name: scenarioVisitor
test_class.declarator: scenarioDetailsPageRenderer
test_class.modifier: private
test_class.original_string: private ScenarioDetailsPageRenderer scenarioDetailsPageRenderer;
test_class.type: ScenarioDetailsPageRenderer
test_class.var_name: scenarioDetailsPageRenderer
test_class.file: plugin-code/src/test/java/com/trivago/cluecumber/rendering/pages/visitors/ScenarioVisitorTest.java
test_class.identifier: ScenarioVisitorTest
test_class.superclass: extends VisitorTest
test_case.body: @Test
      public void visitTest() throws CluecumberPluginException {
          when(allScenariosPageRenderer.getRenderedContent(any(), any())).thenReturn("MyRenderedScenarios");
          when(scenarioDetailsPageRenderer.getRenderedContent(any(), any())).thenReturn("MyRenderedScenarioDetails");
          scenarioVisitor.visit(getAllScenarioPageCollection());
          verify(fileIo, times(1))
                  .writeContentToFile("MyRenderedScenarios", "dummyPath/pages/scenario-summary.html");
          verify(fileIo, times(1))
                  .writeContentToFile("MyRenderedScenarios", "dummyPath/pages/scenario-sequence.html");
          verify(fileIo, times(1))
                  .writeContentToFile("MyRenderedScenarioDetails", "dummyPath/pages/scenario-detail/scenario_0.html");
      }
test_case.class_method_signature: ScenarioVisitorTest.visitTest()
test_case.full_signature: @Test public void visitTest()
test_case.identifier: visitTest
test_case.invocations: thenReturn when getRenderedContent any any thenReturn when getRenderedContent any any visit getAllScenarioPageCollection writeContentToFile verify times 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: 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.declarator: scenarioDetailsPageRenderer
focal_class.modifier: private final
focal_class.original_string: private final ScenarioDetailsPageRenderer scenarioDetailsPageRenderer;
focal_class.type: ScenarioDetailsPageRenderer
focal_class.var_name: scenarioDetailsPageRenderer
focal_class.file: plugin-code/src/main/java/com/trivago/cluecumber/rendering/pages/visitors/ScenarioVisitor.java
focal_class.identifier: ScenarioVisitor
focal_class.interfaces: implements PageVisitor
focal_class.class_method_signature: ScenarioVisitor.ScenarioVisitor(
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final AllScenariosPageRenderer allScenariosPageRenderer,
              final ScenarioDetailsPageRenderer scenarioDetailsPageRenderer
      )
focal_class.full_signature: @Inject public  ScenarioVisitor(
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final AllScenariosPageRenderer allScenariosPageRenderer,
              final ScenarioDetailsPageRenderer scenarioDetailsPageRenderer
      )
focal_class.identifier: ScenarioVisitor
focal_class.modifiers: @Inject public
focal_class.parameters: (
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final AllScenariosPageRenderer allScenariosPageRenderer,
              final ScenarioDetailsPageRenderer scenarioDetailsPageRenderer
      )
focal_class.signature:  ScenarioVisitor(
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final AllScenariosPageRenderer allScenariosPageRenderer,
              final ScenarioDetailsPageRenderer scenarioDetailsPageRenderer
      )
focal_class.class_method_signature: ScenarioVisitor.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 {
          // All scenarios page
          fileIO.writeContentToFile(
                  allScenariosPageRenderer.getRenderedContent(allScenariosPageCollection,
                          templateEngine.getTemplate(ALL_SCENARIOS)),
                  propertyManager.getGeneratedHtmlReportDirectory() + "/" + PluginSettings.PAGES_DIRECTORY + "/" +
                          PluginSettings.SCENARIO_SUMMARY_PAGE_PATH + PluginSettings.HTML_FILE_EXTENSION);
  
          // Scenario sequence page
          fileIO.writeContentToFile(
                  allScenariosPageRenderer.getRenderedContent(
                          allScenariosPageCollection,
                          templateEngine.getTemplate(SCENARIO_SEQUENCE)
                  ),
                  propertyManager.getGeneratedHtmlReportDirectory() + "/" + PluginSettings.PAGES_DIRECTORY + "/" +
                          PluginSettings.SCENARIO_SEQUENCE_PAGE_PATH + PluginSettings.HTML_FILE_EXTENSION);
  
          // Scenario detail pages
          ScenarioDetailsPageCollection scenarioDetailsPageCollection;
          for (Report report : allScenariosPageCollection.getReports()) {
              for (Element element : report.getElements()) {
                  scenarioDetailsPageCollection = new ScenarioDetailsPageCollection(element, propertyManager.getCustomPageTitle());
                  fileIO.writeContentToFile(
                          scenarioDetailsPageRenderer.getRenderedContent(
                                  scenarioDetailsPageCollection,
                                  templateEngine.getTemplate(SCENARIO_DETAILS)
                          ),
                          propertyManager.getGeneratedHtmlReportDirectory() + "/" +
                                  PluginSettings.PAGES_DIRECTORY + PluginSettings.SCENARIO_DETAIL_PAGE_FRAGMENT +
                                  element.getScenarioIndex() + PluginSettings.HTML_FILE_EXTENSION);
              }
          }
      }
focal_method.class_method_signature: ScenarioVisitor.visit(final AllScenariosPageCollection allScenariosPageCollection)
focal_method.full_signature: @Override public void visit(final AllScenariosPageCollection allScenariosPageCollection)
focal_method.identifier: visit
focal_method.invocations: writeContentToFile getRenderedContent getTemplate getGeneratedHtmlReportDirectory writeContentToFile getRenderedContent getTemplate getGeneratedHtmlReportDirectory getReports getElements getCustomPageTitle writeContentToFile getRenderedContent getTemplate getGeneratedHtmlReportDirectory getScenarioIndex
focal_method.modifiers: @Override public
focal_method.parameters: (final AllScenariosPageCollection allScenariosPageCollection)
focal_method.return: void
focal_method.signature: void visit(final AllScenariosPageCollection allScenariosPageCollection)