@Test public final void findAConcreteProblemReportByTheReportNumber() { ProblemReport report = findProblemReport("1"); assertNotNull(report); assertEquals("http: }
public static ProblemReport findProblemReport(String reportNumber) { for (ProblemReport report : database) { if (report.getReportNumber().equals(reportNumber)) { return report; } } return null; }
ProblemReportDB { public static ProblemReport findProblemReport(String reportNumber) { for (ProblemReport report : database) { if (report.getReportNumber().equals(reportNumber)) { return report; } } return null; } }
ProblemReportDB { public static ProblemReport findProblemReport(String reportNumber) { for (ProblemReport report : database) { if (report.getReportNumber().equals(reportNumber)) { return report; } } return null; }  }
ProblemReportDB { public static ProblemReport findProblemReport(String reportNumber) { for (ProblemReport report : database) { if (report.getReportNumber().equals(reportNumber)) { return report; } } return null; }  static ProblemReport findProblemReport(String reportNumber); static List<ProblemReport> getAllProblemReports(); static List<ProblemReport> findAllProblemReports(String correlationId); static void deleteProblemReport(String reportNumber); }
ProblemReportDB { public static ProblemReport findProblemReport(String reportNumber) { for (ProblemReport report : database) { if (report.getReportNumber().equals(reportNumber)) { return report; } } return null; }  static ProblemReport findProblemReport(String reportNumber); static List<ProblemReport> getAllProblemReports(); static List<ProblemReport> findAllProblemReports(String correlationId); static void deleteProblemReport(String reportNumber);  }