3 new revisions:

Revision: 7e2536c0c880
Author:   Jean Deruelle <[email protected]>
Date:     Fri Jun  8 01:40:16 2012
Log:      fixing test regression
http://code.google.com/p/sipservlets/source/detail?r=7e2536c0c880

Revision: 1364d3c36931
Author:   Jean Deruelle <[email protected]>
Date:     Fri Jun  8 02:33:37 2012
Log:      fixing regression due to NIO
http://code.google.com/p/sipservlets/source/detail?r=1364d3c36931

Revision: 34cc1d48229e
Author:   Jean Deruelle <[email protected]>
Date:     Fri Jun  8 02:45:02 2012
Log:      Excluding wrong TCK test
http://code.google.com/p/sipservlets/source/detail?r=34cc1d48229e

==============================================================================
Revision: 7e2536c0c880
Author:   Jean Deruelle <[email protected]>
Date:     Fri Jun  8 01:40:16 2012
Log:      fixing test regression

http://code.google.com/p/sipservlets/source/detail?r=7e2536c0c880

Modified:
/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/simple/ShootmeSipServletTest.java

=======================================
--- /sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/simple/ShootmeSipServletTest.java Wed May 23 13:15:21 2012 +++ /sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/simple/ShootmeSipServletTest.java Fri Jun 8 01:40:16 2012
@@ -217,7 +217,7 @@
        }

public void testShootme491() throws InterruptedException, SipException, ParseException, InvalidArgumentException {
-               String fromName = "exceptionOnExpire";
+               String fromName = "normal";
                String fromSipAddress = "sip-servlets.com";
                SipURI fromAddress = 
senderProtocolObjects.addressFactory.createSipURI(
                                fromName, fromSipAddress);
@@ -229,7 +229,7 @@

                sender.setSendBye(false);
sender.sendSipRequest("INVITE", fromAddress, toAddress, null, null, false);
-               Thread.sleep(5000);
+               Thread.sleep(TIMEOUT);
                sender.sendInDialogSipRequest("INVITE", null, null, null, null, 
null);
                sender.sendInDialogSipRequest("INVITE", null, null, null, null, 
null);
                Thread.sleep(12000);

==============================================================================
Revision: 1364d3c36931
Author:   Jean Deruelle <[email protected]>
Date:     Fri Jun  8 02:33:37 2012
Log:      fixing regression due to NIO

http://code.google.com/p/sipservlets/source/detail?r=1364d3c36931

Modified:
/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletRequestImpl.java

=======================================
--- /sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletRequestImpl.java Fri May 25 15:25:08 2012 +++ /sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/message/SipServletRequestImpl.java Fri Jun 8 02:33:37 2012
@@ -1307,11 +1307,12 @@
// The second condition for SipExcpetion is to cover com.bea.sipservlet.tck.agents.spec.ProxyBranchTest.testCreatingBranchParallel() where they send a request twice, the second // time it does a "Request already sent" jsip exception but the tx is going on and must not be destryed
                        boolean skipTxTermination = false;
- if((ex instanceof IllegalTransactionStateException && ((IllegalTransactionStateException)ex).getReason().equals(Reason.RequestAlreadySent)) || !(getTransaction() instanceof ClientTransaction)) {
+                       Transaction tx = getTransaction();
+ if((ex instanceof IllegalTransactionStateException && ((IllegalTransactionStateException)ex).getReason().equals(Reason.RequestAlreadySent)) || (tx != null && !(tx instanceof ClientTransaction))) {
                                skipTxTermination = true;
                        }
                        if(!skipTxTermination) {
-                               
JainSipUtils.terminateTransaction(getTransaction());
+                               JainSipUtils.terminateTransaction(tx);
// cleaning up the request to make sure it can be resent with some modifications in case of exception if(transactionApplicationData.getHops() != null && transactionApplicationData.getHops().size() > 0) {
                                        request.removeFirst(RouteHeader.NAME);

==============================================================================
Revision: 34cc1d48229e
Author:   Jean Deruelle <[email protected]>
Date:     Fri Jun  8 02:45:02 2012
Log:      Excluding wrong TCK test

http://code.google.com/p/sipservlets/source/detail?r=34cc1d48229e

Modified:
 /sip-servlets-test-suite/tck/excludeList.properties

=======================================
--- /sip-servlets-test-suite/tck/excludeList.properties Thu Feb 23 02:45:50 2012 +++ /sip-servlets-test-suite/tck/excludeList.properties Fri Jun 8 02:45:02 2012
@@ -85,7 +85,7 @@
#: The test is wrong, it expectes sipFactor.createURI(String) to throw IllegalArgumentExcpetion while the javadoc says a parse exception. #exclude.method.39=com.bea.sipservlet.tck.agents.spec.CommittedStateTest.testCommittedStateUnderB2bua
 # - it tries to getServletName from a timer
-#exclude.method.41=com.bea.sipservlet.tck.agents.spec.ContextTest.testContext1
+exclude.method.41=com.bea.sipservlet.tck.agents.spec.ContextTest.testContext1
# : it tries to check if we are compatible with the 2.3 spec but from http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getMinorVersion() and the spec it should be 2.5. #exclude.method.40=com.bea.sipservlet.tck.agents.spec.SessionLifetimeTest.testProxySessionLifetime
 # - it tries to getServletName from a listener

Reply via email to