diff options
author | Mehdi Houshmand <mehdi@apache.org> | 2012-02-14 14:48:00 +0000 |
---|---|---|
committer | Mehdi Houshmand <mehdi@apache.org> | 2012-02-14 14:48:00 +0000 |
commit | 07b46e643aa927b13a0ef86ef8b0a3ac2539ef8e (patch) | |
tree | f79c1e13f5066f7785757a528dd570ad9ba3cff8 | |
parent | 98532f28aaf944f9524d685d8b006531f904c46f (diff) | |
download | xmlgraphics-fop-07b46e643aa927b13a0ef86ef8b0a3ac2539ef8e.tar.gz xmlgraphics-fop-07b46e643aa927b13a0ef86ef8b0a3ac2539ef8e.zip |
Enabled assertions in junit tasks (analagous to JVM arg -ea)
- Disabled a layout test that fails an assertion
- Added an expression to a mocked class to pass assertion
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1243963 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | build.xml | 6 | ||||
-rw-r--r-- | test/java/org/apache/fop/fo/pagination/RepeatablePageMasterAlternativesTestCase.java | 1 | ||||
-rw-r--r-- | test/layoutengine/disabled-testcases.xml | 5 |
3 files changed, 12 insertions, 0 deletions
@@ -787,6 +787,9 @@ list of possible build targets. <classpath> <path refid="@{classpath}"/> </classpath> + <assertions> + <enable/> + </assertions> <test name="@{testsuite}" todir="${junit.reports.dir}" outfile="@{outfile}"/> </junit> </sequential> @@ -801,6 +804,9 @@ list of possible build targets. <classpath> <path refid="standard-junit-classpath"/> </classpath> + <assertions> + <enable/> + </assertions> <batchtest todir="${junit.reports.dir}"> <fileset dir="${build.unit.tests.dir}" includes="**/*TestCase.class"/> </batchtest> diff --git a/test/java/org/apache/fop/fo/pagination/RepeatablePageMasterAlternativesTestCase.java b/test/java/org/apache/fop/fo/pagination/RepeatablePageMasterAlternativesTestCase.java index 29810c472..d8d00536e 100644 --- a/test/java/org/apache/fop/fo/pagination/RepeatablePageMasterAlternativesTestCase.java +++ b/test/java/org/apache/fop/fo/pagination/RepeatablePageMasterAlternativesTestCase.java @@ -158,6 +158,7 @@ implements Constants { when(pList.get(anyInt())).thenReturn(maximumRepeats); PageSequenceMaster parent = mock(PageSequenceMaster.class); + when(parent.getName()).thenReturn("fo:page-sequence-master"); RepeatablePageMasterAlternatives sut = new RepeatablePageMasterAlternatives(parent); diff --git a/test/layoutengine/disabled-testcases.xml b/test/layoutengine/disabled-testcases.xml index cd63ad03f..a14ae6bea 100644 --- a/test/layoutengine/disabled-testcases.xml +++ b/test/layoutengine/disabled-testcases.xml @@ -209,4 +209,9 @@ <description>The block should cause overflow in the last column on the page, rather than be broken.</description> </testcase> + <testcase> + <name>Block Container Reference Orientation Bug</name> + <file>block-container_reference-orientation_bug36391.xml</file> + <description>An assert is failing</description> + </testcase> </disabled-testcases> |