From d80ea16291d11c1611ebfe12669d4a67873d648c Mon Sep 17 00:00:00 2001 From: Stevo Slavic Date: Wed, 3 Apr 2013 00:40:28 +0200 Subject: [PATCH] Fix JasperReport tests to ignore missing fonts Add 'jasperreports.properties' to ignore missing fonts in order that tests pass on Linux. The upgraded JasperReports 5.0.4 throws a JRFontNotFoundException when a report font is not found. This caused Spring MVC tests to fail since the example reports used the 'Arial' font which is not shipped with most Linux distributions. An alternative fix would have been to package fonts with the reports using JasperReports font extension support. Issue: SPR-10438 --- spring-webmvc/src/test/resources/jasperreports.properties | 1 + 1 file changed, 1 insertion(+) create mode 100644 spring-webmvc/src/test/resources/jasperreports.properties diff --git a/spring-webmvc/src/test/resources/jasperreports.properties b/spring-webmvc/src/test/resources/jasperreports.properties new file mode 100644 index 0000000000..967f217ce8 --- /dev/null +++ b/spring-webmvc/src/test/resources/jasperreports.properties @@ -0,0 +1 @@ +net.sf.jasperreports.awt.ignore.missing.font=true \ No newline at end of file