@Test public void testExists() { FortifySensorConfiguration configuration = mock(FortifySensorConfiguration.class); when(configuration.getReportPath()).thenReturn("src/test/resources/report/audit.fvdl"); FileSystem fileSystem = mock(FileSystem.class); when(fileSystem.baseDir()).thenReturn(new File(System.getProperty("user.dir"))); FortifyReportFile fortifyReportFile = new FortifyReportFile(configuration, fileSystem); assertTrue(fortifyReportFile.exist()); }
boolean exist() { File report = getReportFromProperty(); return report != null; }
FortifyReportFile { boolean exist() { File report = getReportFromProperty(); return report != null; } }
FortifyReportFile { boolean exist() { File report = getReportFromProperty(); return report != null; } FortifyReportFile(FortifySensorConfiguration configuration, FileSystem fileSystem); }
FortifyReportFile { boolean exist() { File report = getReportFromProperty(); return report != null; } FortifyReportFile(FortifySensorConfiguration configuration, FileSystem fileSystem);  }
FortifyReportFile { boolean exist() { File report = getReportFromProperty(); return report != null; } FortifyReportFile(FortifySensorConfiguration configuration, FileSystem fileSystem);   }