You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Anthony Kong <an...@ufjia.com> on 2003/01/17 04:23:21 UTC
MSSQL and junit test ( 2)
Hi, all,
To contiue my test I switched to a Enterprice edition MSSQL server, and when
I run junit test, here is what I have got:
junit-no-compile-no-prepare:
[junit] Running org.apache.ojb.broker.AllTests
[junit] [BOOT] INFO: OJB.properties:
file:/home/kongan/workpf/main/pecunia/Java/OJB/finis/target/test/ojb/OJB.pro
perties
[junit] Tests run: 163, Failures: 46, Errors: 90, Time elapsed: 8.475
sec
[junit] Exception in thread "main" java.lang.OutOfMemoryError
Questions:
1) How can I see what is causing the failures and errors?
2) Why I hit the OutOfMemoryError? How can I adjust the memory usage of
java in the ant's build.xml?
Regards,
Anthony
Re: MSSQL and junit test ( 2)
Posted by Armin Waibel <ar...@code-au-lait.de>.
----- Original Message -----
From: "Anthony Kong" <an...@ufjia.com>
To: <oj...@jakarta.apache.org>
Sent: Friday, January 17, 2003 4:23 AM
Subject: MSSQL and junit test ( 2)
> Hi, all,
>
> To contiue my test I switched to a Enterprice edition MSSQL server,
and when
> I run junit test, here is what I have got:
>
> junit-no-compile-no-prepare:
> [junit] Running org.apache.ojb.broker.AllTests
> [junit] [BOOT] INFO: OJB.properties:
>
file:/home/kongan/workpf/main/pecunia/Java/OJB/finis/target/test/ojb/OJB
.pro
> perties
> [junit] Tests run: 163, Failures: 46, Errors: 90, Time elapsed:
8.475
> sec
> [junit] Exception in thread "main" java.lang.OutOfMemoryError
>
>
> Questions:
> 1) How can I see what is causing the failures and errors?
see
jakarta-ojb/target/test/test-XXX.txt files
> 2) Why I hit the OutOfMemoryError? How can I adjust the memory usage
of
> java in the ant's build.xml?
add a jvmarg-tag (in the junit tag) in junit-no-compile target,
in build.xml
min/max memory:
<jvmarg value="-Xms128m"/>
<jvmarg value="-Xmx256m"/>
regards,
Armin
>
>
> Regards,
>
>
> Anthony
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
>