You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by John Brown <jo...@hotmail.com> on 2013/01/04 14:42:55 UTC

FW: FOP-Trunk revision 1428722 unit test fails

Hello All,

The following error occurred while building FOP-Trunk 1428722:

[junit] Testsuite: org.apache.fop.intermediate.IFTestCase
[junit] Tests run: 10, Failures: 0, Errors: 1, Time elapsed: 0.346 sec
[junit]
[junit] Testcase: runTest[5](org.apache.fop.intermediate.IFTestCase):
Caused an ERROR
[junit] Expected XPath expression to evaluate to 'true', but got '' (XPath:
/descendant::if:text[1]/@hyphenated)
[junit] java.lang.RuntimeException: Expected XPath expression to evaluate to
'true', but got '' (XPath: /descendant::if:text[1]/@hyphenated)
[junit] at org.apache.fop.layoutengine.EvalCheck.doCheck(EvalCheck.java:
86)
[junit] at org.apache.fop.layoutengine.EvalCheck.check(EvalCheck.java:65
)
[junit] at org.apache.fop.intermediate.IFTester.doIFChecks(IFTester.java
:80)
[junit] at org.apache.fop.intermediate.IFTestCase.runTest(IFTestCase.jav
a:103)
[junit]
[junit]

BUILD FAILED
C:\Users\John\Downloads\Open_Source\fop-svn\build.xml:820: Tests failed

However, it seems to have built fop*.jar. What is the significance
of the failed test?

Regards,
John Brown. 		 	   		  
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: FOP-Trunk revision 1428722 unit test fails

Posted by John Brown <jo...@hotmail.com>.
Simon Steiner wrote:
>
> Hi,
>
> You need extra jars in classpath to run the unit tests. To just build you
> can use "ant package".
>
> Some of these might be needed if you want to run tests:
>
> # lib/barcode4j-fop-ext.jar
> # lib/barcode4j.jar
> # lib/checkstyle-5.5-all.jar
> # lib/fop-hyph.jar
> # lib/jacocoagent.jar
> # lib/jacocoant.jar
> # lib/jai_imageio.jar
> # lib/junit-4.10.jar
> # lib/zxing-core-1.7.jar
>
> Thanks
>

Hello Simon,

Of these, I have /path/to/fop-trunk-checkout/build/fop-hyph.jar
and /mingw/local/lib/junit-4.8.1.jar (not v 4.10) where /mingw/local
is where I installed ant-1.8.4.

`ant package' works. Thanks.

Regards,
John Brown. 		 	   		  
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: FOP-Trunk revision 1428722 unit test fails

Posted by Simon Steiner <si...@gmail.com>.
Hi,

You need extra jars in classpath to run the unit tests. To just build you
can use "ant package".

Some of these might be needed if you want to run tests:

#	lib/barcode4j-fop-ext.jar
#	lib/barcode4j.jar
#	lib/checkstyle-5.5-all.jar
#	lib/fop-hyph.jar
#	lib/jacocoagent.jar
#	lib/jacocoant.jar
#	lib/jai_imageio.jar
#	lib/junit-4.10.jar
#	lib/zxing-core-1.7.jar

Thanks

-----Original Message-----
From: John Brown [mailto:johnbrown105@hotmail.com] 
Sent: 04 January 2013 13:43
To: fop-users@xmlgraphics.apache.org
Subject: FW: FOP-Trunk revision 1428722 unit test fails

Hello All,

The following error occurred while building FOP-Trunk 1428722:

[junit] Testsuite: org.apache.fop.intermediate.IFTestCase
[junit] Tests run: 10, Failures: 0, Errors: 1, Time elapsed: 0.346 sec
[junit] [junit] Testcase:
runTest[5](org.apache.fop.intermediate.IFTestCase):
Caused an ERROR
[junit] Expected XPath expression to evaluate to 'true', but got '' (XPath:
/descendant::if:text[1]/@hyphenated)
[junit] java.lang.RuntimeException: Expected XPath expression to evaluate to
'true', but got '' (XPath: /descendant::if:text[1]/@hyphenated)
[junit] at org.apache.fop.layoutengine.EvalCheck.doCheck(EvalCheck.java:
86)
[junit] at org.apache.fop.layoutengine.EvalCheck.check(EvalCheck.java:65
)
[junit] at org.apache.fop.intermediate.IFTester.doIFChecks(IFTester.java
:80)
[junit] at org.apache.fop.intermediate.IFTestCase.runTest(IFTestCase.jav
a:103)
[junit]
[junit]

BUILD FAILED
C:\Users\John\Downloads\Open_Source\fop-svn\build.xml:820: Tests failed

However, it seems to have built fop*.jar. What is the significance of the
failed test?

Regards,
John Brown. 		 	   		  
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: FOP-Trunk revision 1428722 unit test fails

Posted by John Brown <jo...@hotmail.com>.
I forgot to mention:

JDK version: jdk1.6.0_38.
O/S: Windows 8 Pro.
Ant version: 1.8.4.

Regards,
John Brown. 		 	   		  
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org