Hi Clebert, there is a test failure on my local machine:
org.jboss.test.messaging.jms.ConnectionConsumerTest.testStopWhileProcessing()
the code is here:
public void testStopWhileProcessing() throws Exception
{
if (ServerManagement.isRemote()) return;
Connection connConsumer = null;
try
{
// some test, not pasted here.
ServerManagement.stop();
connConsumer.close();
connConsumer = null;
}
finally
{
if (connConsumer != null) connConsumer.close();
}
}
The failure message is:
Server 0 has not been started!
java.lang.Exception: Server 0 has not been started!
at
org.jboss.test.messaging.tools.ServerManagement.insureStarted(ServerManagement.java:1262)
at
org.jboss.test.messaging.tools.ServerManagement.getAttribute(ServerManagement.java:633)
at
org.jboss.test.messaging.tools.ServerManagement.getAttribute(ServerManagement.java:628)
at
org.jboss.test.messaging.MessagingTestCase.checkEmpty(MessagingTestCase.java:137)
at org.jboss.test.messaging.jms.JMSTestCase.checkNotEmpty(JMSTestCase.java:101)
at org.jboss.test.messaging.jms.JMSTestCase.tearDown(JMSTestCase.java:131)
You can see in the test the
ServerManagement.stop(); //stops server 0
is called in the end. But in tearDown() it checks to ensure the server is in started
state. Which will fail. Any idea?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197566#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...