Search in sources :

Example 6 with JasperReportBuilder

use of net.sf.dynamicreports.jasper.builder.JasperReportBuilder in project hmftools by hartwigmedical.

the class PDFWriterTest method canGeneratePostDNAIsolationFailReport.

@Test
public void canGeneratePostDNAIsolationFailReport() throws DRException, IOException {
    final JasperReportBuilder report = generateNotSequenceableCPCTReport(0.6, NotSequenceableReason.POST_ISOLATION_FAIL);
    assertNotNull(report);
    if (SHOW_AND_PRINT) {
        report.show().print();
    }
    if (WRITE_TO_PDF) {
        report.toPdf(new FileOutputStream(REPORT_BASE_DIR + File.separator + "hmf_post_dna_isolation_fail_report.pdf"));
    }
}
Also used : FileOutputStream(java.io.FileOutputStream) JasperReportBuilder(net.sf.dynamicreports.jasper.builder.JasperReportBuilder) Test(org.junit.Test)

Aggregations

JasperReportBuilder (net.sf.dynamicreports.jasper.builder.JasperReportBuilder)6 FileOutputStream (java.io.FileOutputStream)4 Test (org.junit.Test)4 GeneCopyNumber (com.hartwig.hmftools.common.gene.GeneCopyNumber)1 ImmutableGeneCopyNumber (com.hartwig.hmftools.common.gene.ImmutableGeneCopyNumber)1 PurityAdjuster (com.hartwig.hmftools.common.purple.PurityAdjuster)1 FittedPurity (com.hartwig.hmftools.common.purple.purity.FittedPurity)1 ImmutableFittedPurity (com.hartwig.hmftools.common.purple.purity.ImmutableFittedPurity)1 BaseReporterData (com.hartwig.hmftools.patientreporter.BaseReporterData)1 HmfReporterData (com.hartwig.hmftools.patientreporter.HmfReporterData)1 ImmutableNotSequencedPatientReport (com.hartwig.hmftools.patientreporter.ImmutableNotSequencedPatientReport)1 ImmutableSampleReport (com.hartwig.hmftools.patientreporter.ImmutableSampleReport)1 ImmutableSequencedPatientReport (com.hartwig.hmftools.patientreporter.ImmutableSequencedPatientReport)1 NotSequencedPatientReport (com.hartwig.hmftools.patientreporter.NotSequencedPatientReport)1 PatientReporterTestUtil.testBaseReporterData (com.hartwig.hmftools.patientreporter.PatientReporterTestUtil.testBaseReporterData)1 PatientReporterTestUtil.testHmfReporterData (com.hartwig.hmftools.patientreporter.PatientReporterTestUtil.testHmfReporterData)1 SampleReport (com.hartwig.hmftools.patientreporter.SampleReport)1 SequencedPatientReport (com.hartwig.hmftools.patientreporter.SequencedPatientReport)1 Alteration (com.hartwig.hmftools.patientreporter.report.data.Alteration)1 GeneDisruptionData (com.hartwig.hmftools.patientreporter.report.data.GeneDisruptionData)1