Browse Source

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
pull/18/head
Mehdi Houshmand 12 years ago
parent
commit
ff8ca48057

+ 6
- 0
build.xml View File

@@ -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>

+ 1
- 0
test/java/org/apache/fop/fo/pagination/RepeatablePageMasterAlternativesTestCase.java View File

@@ -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);


+ 5
- 0
test/layoutengine/disabled-testcases.xml View File

@@ -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>

Loading…
Cancel
Save