Пример #1
0
  @Test
  public void deleteReportExecution() {
    ReportExec execution = reportExecDAO.find(1L);
    int executionNumber = execution.getReport().getExecs().size();

    reportExecDAO.delete(1L);

    reportExecDAO.flush();

    assertNull(reportExecDAO.find(1L));

    Report report = reportDAO.find(1L);
    assertEquals(report.getExecs().size(), executionNumber - 1);
  }