@Test public final void getFavoriteProblemReportsFromTheDatabase() { List<ProblemReport> reports = getFavoriteProblemReports(); assertNotNull(reports); assertFalse(reports.isEmpty()); assertEquals(2, reports.size()); }
public static List<ProblemReport> getFavoriteProblemReports() { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } return database.subList(0, database.size() / 2); }
ProblemReportDB { public static List<ProblemReport> getFavoriteProblemReports() { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } return database.subList(0, database.size() / 2); } }
ProblemReportDB { public static List<ProblemReport> getFavoriteProblemReports() { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } return database.subList(0, database.size() / 2); }  }
ProblemReportDB { public static List<ProblemReport> getFavoriteProblemReports() { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } return database.subList(0, database.size() / 2); }  static ProblemReport findProblemReport(String reportNumber); static List<ProblemReport> getAllProblemReports(); static List<ProblemReport> getFavoriteProblemReports(); static List<ProblemReport> findAllProblemReports(String correlationId); static void deleteProblemReport(String reportNumber); }
ProblemReportDB { public static List<ProblemReport> getFavoriteProblemReports() { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } return database.subList(0, database.size() / 2); }  static ProblemReport findProblemReport(String reportNumber); static List<ProblemReport> getAllProblemReports(); static List<ProblemReport> getFavoriteProblemReports(); static List<ProblemReport> findAllProblemReports(String correlationId); static void deleteProblemReport(String reportNumber);  }