|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2013 the original author or authors. |
| 2 | + * Copyright 2002-2014 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
41 | 41 | import net.sf.jasperreports.engine.export.JRPdfExporterParameter;
|
42 | 42 | import net.sf.jasperreports.engine.export.JRXlsExporterParameter;
|
43 | 43 | import net.sf.jasperreports.engine.util.JRLoader;
|
44 |
| - |
45 | 44 | import org.apache.poi.hssf.usermodel.HSSFCell;
|
46 | 45 | import org.apache.poi.hssf.usermodel.HSSFRow;
|
47 | 46 | import org.apache.poi.hssf.usermodel.HSSFSheet;
|
48 | 47 | import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
49 | 48 | import org.junit.BeforeClass;
|
50 | 49 | import org.junit.Test;
|
| 50 | + |
51 | 51 | import org.springframework.core.io.ClassPathResource;
|
52 | 52 | import org.springframework.tests.Assume;
|
53 | 53 |
|
@@ -140,7 +140,7 @@ public void testRenderAsPdfWithCollection() throws Exception {
|
140 | 140 | public void testRenderAsPdfWithExporterParameters() throws Exception {
|
141 | 141 | ByteArrayOutputStream os = new ByteArrayOutputStream();
|
142 | 142 | Map<JRExporterParameter, Object> exporterParameters = new HashMap<JRExporterParameter, Object>();
|
143 |
| - exporterParameters.put(JRPdfExporterParameter.PDF_VERSION, JRPdfExporterParameter.PDF_VERSION_1_6); |
| 143 | + exporterParameters.put(JRPdfExporterParameter.PDF_VERSION, JRPdfExporterParameter.PDF_VERSION_1_6.toString()); |
144 | 144 | JasperReportsUtils.renderAsPdf(getReport(), getParameters(), getData(), os, exporterParameters);
|
145 | 145 | byte[] output = os.toByteArray();
|
146 | 146 | assertPdfOutputCorrect(output);
|
|
0 commit comments