You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by av...@itellix.com on 2004/01/23 12:26:55 UTC

Test Failure


single-test:
    [junit] Testsuite: org.apache.poi.hssf.usermodel.TestEscherGraphics
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.66 sec

    [junit] Testcase: testGetFont took 0.538 sec
    [junit]     FAILED
    [junit] expected:<...Arial...> but was:<...dialog...>
    [junit] junit.framework.ComparisonFailure: expected:<...Arial...> but
was:<...dialog...>
    [junit]     at junit.framework.Assert.assertEquals(Assert.java:81)
    [junit]     at junit.framework.Assert.assertEquals(Assert.java:87)
    [junit]     at
org.apache.poi.hssf.usermodel.TestEscherGraphics.testGetFont(TestEscherGraphics.java:30)



---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org


Re: Test Failure

Posted by Glen Stampoultzis <gs...@iinet.net.au>.

At 12:16 AM 16/02/2004, you wrote:
>Thanks.
>
>Making it headless didnt help :( (i've been running on a graphic terminal 
>in any
>case.. tho on gump u need to specify headless..)
>
>FWIW, i am running jdk 1.4.2_03, on linux/kde.  testGetFont seems to assume
>Arial as the default font.. I am not too sure that is a valid assumption 
>on all
>systems....

Yes.  The issue is because by the use of the Graphics2d interface.  The 
default font should be Arial for MS spreadsheets. Unfortunately because of 
the way AWT works it is converting it to something more generic.  If you 
know of a way to stop this conversion process I'd be interested in hearing it.

The preferred native interface doesn't have this problem because it doesn't 
use any awt classes.

Regards,

Glen 

Re: Test Failure

Posted by av...@itellix.com.
Thanks. 

Making it headless didnt help :( (i've been running on a graphic terminal in any
case.. tho on gump u need to specify headless..)

FWIW, i am running jdk 1.4.2_03, on linux/kde.  testGetFont seems to assume
Arial as the default font.. I am not too sure that is a valid assumption on all
systems....

HTH
-
Avik


Quoting Glen Stampoultzis <gs...@iinet.net.au>:

> 
> I'll look into it.
> 
> At 12:26 PM 14/02/2004, you wrote:
> 
> 
> >single-test:
> >     [junit] Testsuite: org.apache.poi.hssf.usermodel.TestEscherGraphics
> >     [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.66 sec
> >
> >     [junit] Testcase: testGetFont took 0.538 sec
> >     [junit]     FAILED
> >     [junit] expected:<...Arial...> but was:<...dialog...>
> >     [junit] junit.framework.ComparisonFailure: expected:<...Arial...> but
> >was:<...dialog...>
> >     [junit]     at junit.framework.Assert.assertEquals(Assert.java:81)
> >     [junit]     at junit.framework.Assert.assertEquals(Assert.java:87)
> >     [junit]     at
>
>org.apache.poi.hssf.usermodel.TestEscherGraphics.testGetFont(TestEscherGraphics.java:30)
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: poi-dev-help@jakarta.apache.org
> 
> 
> Glen Stampoultzis
> gstamp@iinet.net.au
> http://members.iinet.net.au/~gstamp/glen/
> 





---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org


Re: Test Failure

Posted by Glen Stampoultzis <gs...@iinet.net.au>.
I'll look into it.

At 12:26 PM 14/02/2004, you wrote:


>single-test:
>     [junit] Testsuite: org.apache.poi.hssf.usermodel.TestEscherGraphics
>     [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.66 sec
>
>     [junit] Testcase: testGetFont took 0.538 sec
>     [junit]     FAILED
>     [junit] expected:<...Arial...> but was:<...dialog...>
>     [junit] junit.framework.ComparisonFailure: expected:<...Arial...> but
>was:<...dialog...>
>     [junit]     at junit.framework.Assert.assertEquals(Assert.java:81)
>     [junit]     at junit.framework.Assert.assertEquals(Assert.java:87)
>     [junit]     at
>org.apache.poi.hssf.usermodel.TestEscherGraphics.testGetFont(TestEscherGraphics.java:30)
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: poi-dev-help@jakarta.apache.org


Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/