@Test
 public void testExecuteReports() throws Exception {
   if (DebugReportRunner.isSkipLongRunTest()) {
     return;
   }
   runAllGoldReports();
 }
  public void testStandardReport2() throws Exception {
    if (DebugReportRunner.isSkipLongRunTest()) {
      return;
    }

    final MasterReport report = DebugReportRunner.parseGoldenSampleReport("Prd-3857-001.prpt");
    final Group rootGroup = report.getRootGroup();
    assertTrue(rootGroup instanceof CrosstabGroup);

    final CrosstabGroup ct = (CrosstabGroup) rootGroup;
    ct.setPrintColumnTitleHeader(false);
    ct.setPrintDetailsHeader(false);

    // Prints two header rows, and 21 data rows (row 0 to row 20)
    List<LogicalPageBox> logicalPageBoxes = DebugReportRunner.layoutPages(report, 0, 1);
    final LogicalPageBox boxP1 = logicalPageBoxes.get(0);
    // ModelPrinter.INSTANCE.print(boxP1);
    final RenderNode[] rowsPage1 =
        MatchFactory.findElementsByNodeType(boxP1, LayoutNodeTypes.TYPE_BOX_TABLE_ROW);
    assertEquals(23, rowsPage1.length);

    // Prints two header rows and 7 data rows (row 21 to row 27)
    final LogicalPageBox boxP2 = logicalPageBoxes.get(1);
    // ModelPrinter.INSTANCE.print(boxP2);
    final RenderNode[] rowsPage2 =
        MatchFactory.findElementsByNodeType(boxP2, LayoutNodeTypes.TYPE_BOX_TABLE_ROW);
    assertEquals(9, rowsPage2.length);
  }
 public void testSeq1Crash2() throws Exception {
   if (DebugReportRunner.isSkipLongRunTest()) {
     return;
   }
   final MasterReport masterReport =
       DebugReportRunner.parseGoldenSampleReport("Prd-2087-small.prpt");
   DebugReportRunner.createPDF(masterReport);
 }