@Test public void testReadReportsFromFile() throws Exception { final File testOutDir = new File(testOutBaseDir, "testReadReportsFromFile"); FileUtils.deleteDirectory(testOutDir); testOutDir.mkdirs(); File summaryFile = new File("src/test/resources/unit/justverify/fake-summary.json"); List<CheckReport> reports = VerifyMojo.readReportsFromFile(summaryFile); assertEquals("reports not empty", 8, reports.size()); }
static List<CheckReport> readReportsFromFile(final File summaryFile) throws Exception { if (summaryFile != null && summaryFile.exists()) { return ReportMapper.readReportsFromFile(summaryFile); } else { return Collections.emptyList(); } }
VerifyMojo extends AbstractITestMojo { static List<CheckReport> readReportsFromFile(final File summaryFile) throws Exception { if (summaryFile != null && summaryFile.exists()) { return ReportMapper.readReportsFromFile(summaryFile); } else { return Collections.emptyList(); } } }
VerifyMojo extends AbstractITestMojo { static List<CheckReport> readReportsFromFile(final File summaryFile) throws Exception { if (summaryFile != null && summaryFile.exists()) { return ReportMapper.readReportsFromFile(summaryFile); } else { return Collections.emptyList(); } }  }
VerifyMojo extends AbstractITestMojo { static List<CheckReport> readReportsFromFile(final File summaryFile) throws Exception { if (summaryFile != null && summaryFile.exists()) { return ReportMapper.readReportsFromFile(summaryFile); } else { return Collections.emptyList(); } }   }
VerifyMojo extends AbstractITestMojo { static List<CheckReport> readReportsFromFile(final File summaryFile) throws Exception { if (summaryFile != null && summaryFile.exists()) { return ReportMapper.readReportsFromFile(summaryFile); } else { return Collections.emptyList(); } }    }