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

Jaroslaw Kijanowski (JIRA) jira-events at jboss.com
Fri Jul 28 05:05:11 EDT 2006


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


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:
copy server/default/deploy/jms/jbossmq-destinations-service.xml
to
server/all/deploy/jms/jbossmq-destinations-service.xml
and uncomment the two queues "testQueue" and "A" and the first topic "testTopic".


-- 
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