aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org/apache/fop/events
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2014-03-14 10:44:23 +0000
committerVincent Hennebert <vhennebert@apache.org>2014-03-14 10:44:23 +0000
commit4c131bd42f52e394b4c6220a3af179cb4539bf40 (patch)
treea5abb4df2edda095317f825c276e863b8a1d081b /test/java/org/apache/fop/events
parent28b4b3d4de6106f807de5836683c82c453d58b9e (diff)
downloadxmlgraphics-fop-4c131bd42f52e394b4c6220a3af179cb4539bf40.tar.gz
xmlgraphics-fop-4c131bd42f52e394b4c6220a3af179cb4539bf40.zip
FOP-2357: When an SVG image has transparency and a PDF profile is used that disallows it, ignore it and issue a warning rather than throw an error
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1577477 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java/org/apache/fop/events')
-rw-r--r--test/java/org/apache/fop/events/EventChecker.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/java/org/apache/fop/events/EventChecker.java b/test/java/org/apache/fop/events/EventChecker.java
index 3f0eef6bb..506658467 100644
--- a/test/java/org/apache/fop/events/EventChecker.java
+++ b/test/java/org/apache/fop/events/EventChecker.java
@@ -27,7 +27,7 @@ import static org.junit.Assert.fail;
/**
* Class that checks that an expected event is produced, and only this one.
*/
-class EventChecker implements EventListener {
+public class EventChecker implements EventListener {
private final String expectedEventID;
@@ -35,7 +35,7 @@ class EventChecker implements EventListener {
private boolean eventReceived;
- EventChecker(String expectedEventID, Map<String, Object> expectedParams) {
+ public EventChecker(String expectedEventID, Map<String, Object> expectedParams) {
this.expectedEventID = expectedEventID;
this.expectedParams = expectedParams;
}
@@ -51,9 +51,9 @@ class EventChecker implements EventListener {
}
}
- void end() {
+ public void end() {
if (!eventReceived) {
- fail("Did not received expected event: " + expectedEventID);
+ fail("Did not receive expected event: " + expectedEventID);
}
}
}