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
|