Browse Source

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
pull/273/head
Stevo Slavic 12 years ago committed by Phillip Webb
parent
commit
d80ea16291
  1. 1
      spring-webmvc/src/test/resources/jasperreports.properties

1
spring-webmvc/src/test/resources/jasperreports.properties

@ -0,0 +1 @@ @@ -0,0 +1 @@
net.sf.jasperreports.awt.ignore.missing.font=true
Loading…
Cancel
Save