[jboss-jira] [JBoss JIRA] Commented: (JBAS-3444) org.jboss.test.naming.test.ENCUnitTestCase ends with errors

Anil Saldhana (JIRA) jira-events at jboss.com
Wed Aug 2 17:18:11 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBAS-3444?page=comments#action_12340447 ] 
            
Anil Saldhana commented on JBAS-3444:
-------------------------------------

I did test this with 
$> ant all-config-tests

There is a need to keep the tests and the resources same across the branches.  Because the change was made in HEAD only wrt message destinations, it is better to copy the tmp mssg destination service file to the all config before the tests are run.

Having the test run with its own seperate queues is valid, but there are a lot of testcases in the testsuite that depend on the predefined temp destinations (queues A,B,C,D) and retrofitting all of them is not worth the effort.

If you have more thoughts, you can continue discussion here:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962637

JIRA is not for discussion,

> org.jboss.test.naming.test.ENCUnitTestCase ends with errors
> -----------------------------------------------------------
>
>                 Key: JBAS-3444
>                 URL: http://jira.jboss.com/jira/browse/JBAS-3444
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Test Suite
>    Affects Versions: JBossAS-5.0.0.Beta
>         Environment: win xp
>            Reporter: Jaroslaw Kijanowski
>         Assigned To: Anil Saldhana
>
> org.jboss.test.naming.test.ENCUnitTestCase ends with two errors, because nessesary queues and topics aren't present for the "all" instance.
> ENCUnitTestCase calls accessENC() method in org.jboss.test.naming.ejb.TestEncBean.java. The last two methods of the if-block (testResourceEnvEntries and testMessageDestinationRefs) cause NameNotFoundException: testQueue not bound.
> They try to use the queues "res/aQueue" and "mdr/ConsumesProducesJNDIName". These queues are "mapped" in the jboss-head/testsuite/src/resources/naming/jar/META-INF/jboss.xml to "queue/testQueue" and "queue/A", but these two queues don't exist.
> The last method (testMessageDestinationRefs) try to use also the topic "mdr/ProducesLink", which is "mapped" in jboss-head/testsuite/src/resources/naming/jar/META-INF/ejb-jar.xml to "TestTopic" which is "mapped" in jboss-head/testsuite/src/resources/naming/jar/META-INF/jboss.xml to "topic/testTopic" cause an errror, because the tpic isnt't present too.
> To fix these errors:
> uncomment the two queues "testQueue" and "A" and the first topic "testTopic" in:
> jboss-head\build\output\jboss-5.0.0.Beta\server\all\deploy-hasingleton\jms\jbossmq-destinations-service.xml

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list