test_class.declarator: fileSystemManager
test_class.modifier: private
test_class.original_string: private FileSystemManager fileSystemManager;
test_class.type: FileSystemManager
test_class.var_name: fileSystemManager
test_class.declarator: reportGenerator
test_class.modifier: private
test_class.original_string: private ReportGenerator reportGenerator;
test_class.type: ReportGenerator
test_class.var_name: reportGenerator
test_class.file: plugin-code/src/test/java/com/trivago/cluecumber/rendering/ReportGeneratorTest.java
test_class.identifier: ReportGeneratorTest
test_case.body: @Test
      public void fileOperationsTest() throws Exception {
          AllScenariosPageCollection allScenariosPageCollection = new AllScenariosPageCollection("");
  
          Report report1 = new Report();
          List<Element> elements1 = new ArrayList<>();
          Element element1 = new Element();
          elements1.add(element1);
          report1.setElements(elements1);
  
          Report report2 = new Report();
          List<Element> elements2 = new ArrayList<>();
          Element element2 = new Element();
          elements2.add(element2);
          report2.setElements(elements2);
  
          Report[] reportList = {report1, report2};
          allScenariosPageCollection.addReports(reportList);
  
          reportGenerator.generateReport(allScenariosPageCollection);
  
          verify(fileSystemManager, times(8)).createDirectory(anyString());
          verify(fileSystemManager, times(17)).copyResourceFromJar(anyString(), anyString());
      }
test_case.class_method_signature: ReportGeneratorTest.fileOperationsTest()
test_case.full_signature: @Test public void fileOperationsTest()
test_case.identifier: fileOperationsTest
test_case.invocations: add setElements add setElements addReports generateReport createDirectory verify times anyString copyResourceFromJar verify times anyString anyString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void fileOperationsTest()
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: fileSystemManager
focal_class.modifier: private final
focal_class.original_string: private final FileSystemManager fileSystemManager;
focal_class.type: FileSystemManager
focal_class.var_name: fileSystemManager
focal_class.declarator: startPageRenderer
focal_class.modifier: private final
focal_class.original_string: private final StartPageRenderer startPageRenderer;
focal_class.type: StartPageRenderer
focal_class.var_name: startPageRenderer
focal_class.declarator: customCssRenderer
focal_class.modifier: private final
focal_class.original_string: private final CustomCssRenderer customCssRenderer;
focal_class.type: CustomCssRenderer
focal_class.var_name: customCssRenderer
focal_class.declarator: visitors
focal_class.modifier: private final
focal_class.original_string: private final List<PageVisitor> visitors;
focal_class.type: List<PageVisitor>
focal_class.var_name: visitors
focal_class.file: plugin-code/src/main/java/com/trivago/cluecumber/rendering/ReportGenerator.java
focal_class.identifier: ReportGenerator
focal_class.class_method_signature: ReportGenerator.ReportGenerator(
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final FileSystemManager fileSystemManager,
              final StartPageRenderer startPageRenderer,
              final CustomCssRenderer customCssRenderer,
              final VisitorDirectory visitorDirectory
      )
focal_class.full_signature: @Inject  ReportGenerator(
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final FileSystemManager fileSystemManager,
              final StartPageRenderer startPageRenderer,
              final CustomCssRenderer customCssRenderer,
              final VisitorDirectory visitorDirectory
      )
focal_class.identifier: ReportGenerator
focal_class.modifiers: @Inject
focal_class.parameters: (
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final FileSystemManager fileSystemManager,
              final StartPageRenderer startPageRenderer,
              final CustomCssRenderer customCssRenderer,
              final VisitorDirectory visitorDirectory
      )
focal_class.signature:  ReportGenerator(
              final FileIO fileIO,
              final TemplateEngine templateEngine,
              final PropertyManager propertyManager,
              final FileSystemManager fileSystemManager,
              final StartPageRenderer startPageRenderer,
              final CustomCssRenderer customCssRenderer,
              final VisitorDirectory visitorDirectory
      )
focal_class.class_method_signature: ReportGenerator.generateReport(final AllScenariosPageCollection allScenariosPageCollection)
focal_class.full_signature: public void generateReport(final AllScenariosPageCollection allScenariosPageCollection)
focal_class.identifier: generateReport
focal_class.modifiers: public
focal_class.parameters: (final AllScenariosPageCollection allScenariosPageCollection)
focal_class.return: void
focal_class.signature: void generateReport(final AllScenariosPageCollection allScenariosPageCollection)
focal_class.class_method_signature: ReportGenerator.generateStartPage(boolean redirectToFirstScenarioPage)
focal_class.full_signature: private void generateStartPage(boolean redirectToFirstScenarioPage)
focal_class.identifier: generateStartPage
focal_class.modifiers: private
focal_class.parameters: (boolean redirectToFirstScenarioPage)
focal_class.return: void
focal_class.signature: void generateStartPage(boolean redirectToFirstScenarioPage)
focal_class.class_method_signature: ReportGenerator.createDirectories(final String reportDirectory)
focal_class.full_signature: private void createDirectories(final String reportDirectory)
focal_class.identifier: createDirectories
focal_class.modifiers: private
focal_class.parameters: (final String reportDirectory)
focal_class.return: void
focal_class.signature: void createDirectories(final String reportDirectory)
focal_class.class_method_signature: ReportGenerator.copyCustomCss(final String reportDirectory)
focal_class.full_signature: private void copyCustomCss(final String reportDirectory)
focal_class.identifier: copyCustomCss
focal_class.modifiers: private
focal_class.parameters: (final String reportDirectory)
focal_class.return: void
focal_class.signature: void copyCustomCss(final String reportDirectory)
focal_class.class_method_signature: ReportGenerator.copyStaticReportAssets(final String reportDirectory)
focal_class.full_signature: private void copyStaticReportAssets(final String reportDirectory)
focal_class.identifier: copyStaticReportAssets
focal_class.modifiers: private
focal_class.parameters: (final String reportDirectory)
focal_class.return: void
focal_class.signature: void copyStaticReportAssets(final String reportDirectory)
focal_class.class_method_signature: ReportGenerator.copyFileFromJarToReportDirectory(final String fileName)
focal_class.full_signature: private void copyFileFromJarToReportDirectory(final String fileName)
focal_class.identifier: copyFileFromJarToReportDirectory
focal_class.modifiers: private
focal_class.parameters: (final String fileName)
focal_class.return: void
focal_class.signature: void copyFileFromJarToReportDirectory(final String fileName)
focal_method.body: public void generateReport(final AllScenariosPageCollection allScenariosPageCollection) throws CluecumberPluginException {
          String reportDirectory = propertyManager.getGeneratedHtmlReportDirectory();
          createDirectories(reportDirectory);
          copyStaticReportAssets(reportDirectory);
          copyCustomCss(reportDirectory);
  
          boolean redirectToFirstScenarioPage =
                  propertyManager.getStartPage() == PluginSettings.StartPage.ALL_SCENARIOS &&
                          allScenariosPageCollection.getTotalNumberOfScenarios() == 1;
  
          generateStartPage(redirectToFirstScenarioPage);
          for (PageVisitor visitor : visitors) {
              allScenariosPageCollection.accept(visitor);
          }
      }
focal_method.class_method_signature: ReportGenerator.generateReport(final AllScenariosPageCollection allScenariosPageCollection)
focal_method.full_signature: public void generateReport(final AllScenariosPageCollection allScenariosPageCollection)
focal_method.identifier: generateReport
focal_method.invocations: getGeneratedHtmlReportDirectory createDirectories copyStaticReportAssets copyCustomCss getStartPage getTotalNumberOfScenarios generateStartPage accept
focal_method.modifiers: public
focal_method.parameters: (final AllScenariosPageCollection allScenariosPageCollection)
focal_method.return: void
focal_method.signature: void generateReport(final AllScenariosPageCollection allScenariosPageCollection)