-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: EJB3IntegrationTest in CaveatEmptor fails on multiple tests.
PostPosted: Mon Dec 10, 2007 12:30 pm 
Newbie

Joined: Tue Mar 22, 2005 10:31 pm
Posts: 8
If I have two tests case classes to be run I get this error:

[testng] Failed to invoke @Configuration method com.echostorm.adlib.advis.persistence.beans.crud.test.EJB3IntegrationTest.beforeTestMethod:null
[testng] PASSED: withoutEJBContainer
[testng] PASSED: withEJBContainer
[testng] FAILED: beforeTestMethod
[testng] java.lang.NullPointerException
[testng] at com.echostorm.adlib.advis.persistence.beans.crud.test.EJB3IntegrationTest.getConnection(Unknown Source)
[testng] at com.echostorm.adlib.advis.persistence.beans.crud.test.EJB3IntegrationTest.beforeTestMethod(Unknown Source)
[testng] ... Removed 23 stack frames
[testng] SKIPPED: afterTestMethod
[testng] SKIPPED: withoutEJBContainer
[testng] SKIPPED: beforeTestMethod
[testng] SKIPPED: afterTestMethod
[testng] SKIPPED: withEJBContainer
[testng]
[testng] ===============================================
[testng] Integration JPA
[testng] Tests run: 8, Failures: 1, Skips: 5
[testng] ===============================================
[testng]





If I run either test by itself, by defining it and only it in the testsuite-integration-ejb3.xml file, then it will work. However, when
they are both defined:

<test name="Integration JPA">
<groups>
<run><include name="integration-persistence.*"/></run>
</groups>
<classes>
<class name="com.echostorm.adlib.advis.persistence.beans.crud.test.basic.AudioProfileTest"/>
<class name="com.echostorm.adlib.advis.persistence.beans.crud.test.basic.VideoProfileTest"/>
</classes>
</test>


The 2nd one always fails.

Any suggestions?

Vince


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.