Hi Marcel I ran the unit test again following your recommended. Most of test cases are passed, but I still got several failures and even caused display mess of the terminal screen which unit tests starts in. Are those known issues or I did something wrong? I did the unit test along following steps. 1. go to xmlBlaster directory. 2. run 'build.sh delete' 3. run 'build.sh all' 4. go to xmlBlaster/testsuite/src/java/org/xmlBlaster/test/ 5. execute 'export CLASSPATH=../../../../../../lib/xmlBlaster.jar:../../../../../../lib/junit.jar' 6. run 'test.sh'. Tons of thanks for your helping. Edwin. Failures detail: 1. org.xmlBlaster.test.classtest.AllTests A. testOnOverflowException(org.xmlBlaster.test.classtest.InvocationRecorderTest): InvocationRecorderTest.testOnOverflowException() ii=2 : errorCode=resource.exhaust message=#exported Maximun size=2 of queue 'RamRecorder' reached detail: junit.framework.AssertionFailedError: InvocationRecorderTest.testOnOverflowException() ii=2 : errorCode=resource.exhaust message=#exported Maximun size=2 of queue 'RamRecorder' reached at org.xmlBlaster.test.classtest.InvocationRecorderTest.onOverflowException(InvocationRecorderTest.java:256) at org.xmlBlaster.test.classtest.InvocationRecorderTest.testOnOverflowException(InvocationRecorderTest.java:227) ... B. testPropertyStartingWith(org.xmlBlaster.test.classtest.PropertyTest): Number of entries found expected:<3> but was:<2> detail: junit.framework.AssertionFailedError: Number of entries found expected:<3> but was:<2> at org.xmlBlaster.test.classtest.PropertyTest.testPropertyStartingWith(PropertyTest.java:47) ... 2. org.xmlBlaster.test.qos.AllTests A. testThread(org.xmlBlaster.test.qos.TestCorbaThreads): We have a thread leak, threadsBefore=28 threadsAfter=36 detail: junit.framework.AssertionFailedError: We have a thread leak, threadsBefore=28 threadsAfter=36 at org.xmlBlaster.test.qos.TestCorbaThreads.testThread(TestCorbaThreads.java:177) ... B. testCallbackFailure(org.xmlBlaster.test.qos.TestCallback): Session of Tim was not destroyed by failing callback expected:<-1> but was:<18> detail: junit.framework.AssertionFailedError: Session of Tim was not destroyed by failing callback expected:<-1> but was:<18> at org.xmlBlaster.test.qos.TestCallback.testCallbackFailure(TestCallback.java:165) ... 3. org.xmlBlaster.test.client.AllTests A. testXPathInitialStop(org.xmlBlaster.test.client.TestPersistentSession): expected:<2> but was:<1> detail: junit.framework.AssertionFailedError: expected:<2> but was:<1> at org.xmlBlaster.test.client.TestPersistentSession.persistentSession(TestPersistentSession.java:296) at org.xmlBlaster.test.client.TestPersistentSession.testXPathInitialStop(TestPersistentSession.java:365) ... B. testOverflow(org.xmlBlaster.test.client.TestPersistentSession): null detail: java.lang.NullPointerException at org.xmlBlaster.test.client.TestPersistentSession.testOverflow(TestPersistentSession.java:437) ... C. testNoQueuingOverflowPersistent(org.xmlBlaster.test.client.TestPtPDispatch): did expect an exception after publishing to client/testNoQueuingOverflowPersistent/1 here but got none detail: junit.framework.AssertionFailedError: did expect an exception after publishing to client/testNoQueuingOverflowPersistent/1 here but got none at org.xmlBlaster.test.client.TestPtPDispatch.doPublish(TestPtPDispatch.java:162) at org.xmlBlaster.test.client.TestPtPDispatch.noQueuingOverflow(TestPtPDispatch.java:250) at org.xmlBlaster.test.client.TestPtPDispatch.testNoQueuingOverflowPersistent(TestPtPDispatch.java:284) ... D. testQueuingOverflowTransient(org.xmlBlaster.test.client.TestPtPDispatch): client/testQueuingOverflowTransient/1 expected:<2> but was:<0> detail: junit.framework.AssertionFailedError: client/testQueuingOverflowTransient/1 expected:<2> but was:<0> at org.xmlBlaster.test.util.PtPDestination.check(PtPDestination.java:99) at org.xmlBlaster.test.client.TestPtPDispatch.checkWithReconnect(TestPtPDispatch.java:181) at org.xmlBlaster.test.client.TestPtPDispatch.queuingOverflow(TestPtPDispatch.java:336) at org.xmlBlaster.test.client.TestPtPDispatch.queuingOverflow(TestPtPDispatch.java:336) ... E. testQueuingOverflowPersistent(org.xmlBlaster.test.client.TestPtPDispatch): did expect an exception after publishing to client/testQueuingOverflowPersistent/1 here but got none detail: junit.framework.AssertionFailedError: did expect an exception after publishing to client/testQueuingOverflowPersistent/1 here but got none at org.xmlBlaster.test.client.TestPtPDispatch.doPublish(TestPtPDispatch.java:162) at org.xmlBlaster.test.client.TestPtPDispatch.queuingOverflow(TestPtPDispatch.java:328) at org.xmlBlaster.test.client.TestPtPDispatch.testQueuingOverflowPersistent(TestPtPDispatch.java:359) ... F. testPersistentPtPOneOidWithGc(org.xmlBlaster.test.client.TestPtPPersistent): an exception on publish '16' should have occurred detail: junit.framework.AssertionFailedError: an exception on publish '16' should have occurred at org.xmlBlaster.test.client.TestPtPPersistent.persistentPtP(TestPtPPersistent.java:249) at org.xmlBlaster.test.client.TestPtPPersistent.testPersistentPtPOneOidWithGc(TestPtPPersistent.java:173) ... G. testPersistentPtPOneOidNoGc(org.xmlBlaster.test.client.TestPtPPersistent): an exception on publish '16' should have occurred detail: junit.framework.AssertionFailedError: an exception on publish '16' should have occurred at org.xmlBlaster.test.client.TestPtPPersistent.persistentPtP(TestPtPPersistent.java:249) at org.xmlBlaster.test.client.TestPtPPersistent.testPersistentPtPOneOidNoGc(TestPtPPersistent.java:177) ... H. testPersistentPtPNoOidWithGc(org.xmlBlaster.test.client.TestPtPPersistent): an exception on publish '16' should have occurred detail: junit.framework.AssertionFailedError: an exception on publish '16' should have occurred at org.xmlBlaster.test.client.TestPtPPersistent.persistentPtP(TestPtPPersistent.java:249) at org.xmlBlaster.test.client.TestPtPPersistent.testPersistentPtPNoOidWithGc(TestPtPPersistent.java:181) ... I. testPersistentPtPNoOidNoGc(org.xmlBlaster.test.client.TestPtPPersistent): an exception on publish '16' should have occurred detail: junit.framework.AssertionFailedError: an exception on publish '16' should have occurred at org.xmlBlaster.test.client.TestPtPPersistent.persistentPtP(TestPtPPersistent.java:249) at org.xmlBlaster.test.client.TestPtPPersistent.testPersistentPtPNoOidNoGc(TestPtPPersistent.java:185) ... Such test causes the screen messed like following, even finish the tests the screen still keep such messed display. <=================================screen=============================================================> !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? !"#$%&'()*+,-./0123456789:;<=>? at ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? <???> <??????>/????/???B??????_127_0_0_1_3412/??????/°???P?????T???U???/-143</??????> <????????? ??='__???I?:1161983933504000000'/> <???T???????? ?????='1161983949822000000'/> <????? ?????='0' ????='1'/> <??U?????/> <??????P??????? ????='_°???N???'>??.±?°</??????P???????> <??????P??????? ????='_°???D???' ????='???±'>1161983947000</??????P???????> </???> O?? 27, 2006 2:19:11 PM INFO 11-T???R?????-T????? ??±.???B??????.??????.X??B??????A????? ????????: S??????°?? ?????????? °??? /???B??????/????/???B??????_127_0_0_1_3412 O?? 27, 2006 2:19:11 PM INFO 11-T???R?????-T????? ??±.???B??????.????.??????.T???F???P?????P??±?? ????D???: E??????± ????D???(), ???? ?? °??????? O?? 27, 2006 2:19:11 PM INFO 11-T???R?????-T????? ??±.???B??????.??????.X??B??????A????? ????????: S??????°?? ?????????? °??? /???B??????/????/???B??????_127_0_0_1_3412 <===================================================screen============================================================================> 4. org.xmlBlaster.test.authentication.AllTests A. testSessionCb(org.xmlBlaster.test.authentication.TestSessionCb): Session of NUMBER_ONE was not destroyed by failing callback expected:<-1> but was:<175> detail: junit.framework.AssertionFailedError: Session of NUMBER_ONE was not destroyed by failing callback expected:<-1> but was:<175> at org.xmlBlaster.test.authentication.TestSessionCb.testSessionCb(TestSessionCb.java:176) ... B. testSessionCb(org.xmlBlaster.test.authentication.TestSessionCb): Session of NUMBER_ONE was not destroyed by failing callback expected:<-1> but was:<175> detail: junit.framework.AssertionFailedError: Session of NUMBER_ONE was not destroyed by failing callback expected:<-1> but was:<175> at org.xmlBlaster.test.authentication.TestSessionCb.testSessionCb(TestSessionCb.java:176) ... C. testSessionReconnect(org.xmlBlaster.test.authentication.TestSessionReconnect): expected:<8> but was:<7> detail: junit.framework.AssertionFailedError: expected:<8> but was:<7> at org.xmlBlaster.test.authentication.TestSessionReconnect.testSessionReconnect(TestSessionReconnect.java:213) ... 5. org.xmlBlaster.test.dispatch.AllTests A. testPriorizedDispatchPlugin(org.xmlBlaster.test.dispatch.TestPriorizedDispatchPlugin): state=64k action=queue,notifySender expected:<1> but was:<0> detail: testPriorizedDispatchPlugin(org.xmlBlaster.test.dispatch.TestPriorizedDispatchPlugin): state=64k action=queue,notifySender expected:<1> but was:<0> at org.xmlBlaster.test.dispatch.TestPriorizedDispatchPlugin.testPriorizedDispatchPlugin(TestPriorizedDispatchPlugin.java:249) ... B. testPriorizedDispatchPluginReconfigure(org.xmlBlaster.test.dispatch.TestPriorizedDispatchPlugin): Testing configuration expected:<10> but was:<3> detail: junit.framework.AssertionFailedError: Testing configuration expected:<10> but was:<3> at org.xmlBlaster.test.dispatch.TestPriorizedDispatchPlugin.testPriorizedDispatchPluginReconfigure(TestPriorizedDispatchPlugin.java:336) ... C. testPriorizedDispatchPluginConnectionState(org.xmlBlaster.test.dispatch.TestPriorizedDispatchWithLostCallback): Testing configuration expected:<6> but was:<2> detail: junit.framework.AssertionFailedError: Testing configuration expected:<6> but was:<2> at org.xmlBlaster.test.dispatch.TestPriorizedDispatchWithLostCallback.testPriorizedDispatchPluginConnectionState (TestPriorizedDispatchWithLostCallback.java:320) ... 6. org.xmlBlaster.test.jdbc.AllTests A. testQueries(org.xmlBlaster.test.jdbc.TestJdbcAccess): Token BMW not found in result detail: junit.framework.AssertionFailedError: Token BMW not found in result at org.xmlBlaster.test.jdbc.TestJdbcAccess.invokeSyncQuery(TestJdbcAccess.java:173) at org.xmlBlaster.test.jdbc.TestJdbcAccess.testQueries(TestJdbcAccess.java:154) ... -----Original Message----- From: owner-xmlblaster at server.xmlBlaster.org on behalf of Marcel Ruff Sent: Thu 10/26/2006 11:16 AM To: xmlblaster at server.xmlBlaster.org Subject: Re: [xmlblaster] How to run unit test HongYuan Li wrote: > After I downloaded xmlBlaster(v1.2) source and ran the unit test by > using 'build runJunit', But it seems the testing never stoped (the > testing even was running for 2 days). Do I need to do something before > run the unit test? It would be a great appreciated if someone can tell > me how to run (prepare) the unit test. > > Thanks > Edwin Li. > Hi Edwin, the ant call to run the tests hangs after some tests. The reason is that our tearDown()s are not completely proper implemented (needs some work to be done ...). We usually start the tests in individual bunches with xmlBlaster/testsuite/src/java/org/xmlBlaster/test/test.sh cu Marcel
<<winmail.dat>>