From: Mehdi Houshmand Date: Tue, 14 Feb 2012 14:48:00 +0000 (+0000) Subject: Enabled assertions in junit tasks (analagous to JVM arg -ea) X-Git-Tag: fop-1_1rc1old~131 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=07b46e643aa927b13a0ef86ef8b0a3ac2539ef8e;p=xmlgraphics-fop.git 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 --- diff --git a/build.xml b/build.xml index 9790aceac..e8d522309 100644 --- a/build.xml +++ b/build.xml @@ -787,6 +787,9 @@ list of possible build targets. + + + @@ -801,6 +804,9 @@ list of possible build targets. + + + 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 @@ The block should cause overflow in the last column on the page, rather than be broken. + + Block Container Reference Orientation Bug + block-container_reference-orientation_bug36391.xml + An assert is failing +