You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Simon Pepping <sp...@leverkruid.eu> on 2011/02/04 16:01:08 UTC

junit error in BitmapImageUtilTestCase

I get a junit failure in BitmapImageUtilTestCase:

Testcase: testConvertToMono(org.apache.fop.util.BitmapImageUtilTestCase):	FAILED
expected:<0[100000100000100]0001000101010101> but was:<0[001000100010001]0001000101010101>
junit.framework.ComparisonFailure: expected:<0[100000100000100]0001000101010101> but was:<0[001000100010001]0001000101010101>
	at org.apache.fop.util.BitmapImageUtilTestCase.assertPixels(BitmapImageUtilTestCase.java:105)
	at org.apache.fop.util.BitmapImageUtilTestCase.testConvertToMono(BitmapImageUtilTestCase.java:97)

Simon

Re: junit error in BitmapImageUtilTestCase

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Damn, I knew it. I've tested two Sun 5 and 6 and OpenJDK 6 and they ran
through. Anyway, I've disabled the pixel tests:
http://svn.apache.org/viewvc?rev=1067193&view=rev

So much for plattform-independence. Even worse with the color
conversions that I still have to look at.

Sorry for the inconvenience.

On 04.02.2011 16:01:08 Simon Pepping wrote:
> I get a junit failure in BitmapImageUtilTestCase:
> 
> Testcase: testConvertToMono(org.apache.fop.util.BitmapImageUtilTestCase):	FAILED
> expected:<0[100000100000100]0001000101010101> but was:<0[001000100010001]0001000101010101>
> junit.framework.ComparisonFailure: expected:<0[100000100000100]0001000101010101> but was:<0[001000100010001]0001000101010101>
> 	at org.apache.fop.util.BitmapImageUtilTestCase.assertPixels(BitmapImageUtilTestCase.java:105)
> 	at org.apache.fop.util.BitmapImageUtilTestCase.testConvertToMono(BitmapImageUtilTestCase.java:97)
> 
> Simon




Jeremias Maerki