@Test public void testDirExists() { FortifySensorConfiguration configuration = mock(FortifySensorConfiguration.class); when(configuration.getReportPath()).thenReturn(System.getProperty("user.dir")); FortifyReportFile fortifyReportFile = new FortifyReportFile(configuration, this.fs); try { fortifyReportFile.exist(); fail("An exception is expected!"); } catch (MessageException e) { } }
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);   }