[jboss-cvs] JBossAS SVN: r95884 - trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Oct 31 21:46:24 EDT 2009


Author: remy.maucherat at jboss.com
Date: 2009-10-31 21:46:23 -0400 (Sat, 31 Oct 2009)
New Revision: 95884

Modified:
   trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/ClusteredSessionNotificationPolicyTestCase.java
   trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/PersistentStoreSessionNotificationPolicyTestCase.java
Log:
- Revert.

Modified: trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/ClusteredSessionNotificationPolicyTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/ClusteredSessionNotificationPolicyTestCase.java	2009-10-31 19:45:32 UTC (rev 95883)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/ClusteredSessionNotificationPolicyTestCase.java	2009-11-01 01:46:23 UTC (rev 95884)
@@ -184,14 +184,14 @@
       MockHttpSessionListener hsl0 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal0 = new MockHttpSessionAttributeListener();      
       Context ctx = (Context) jbcm0.getContainer();
-      ctx.addApplicationListenerInstance(hsl0);
-      ctx.addApplicationListenerInstance(hsal0);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal0 });  
       
       MockHttpSessionListener hsl1 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();      
       ctx = (Context) jbcm1.getContainer();
-      ctx.addApplicationListenerInstance(hsl1);
-      ctx.addApplicationListenerInstance(hsal1);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal1 }); 
       
       // Initial request
       SetAttributesRequestHandler setHandler = new SetAttributesRequestHandler(attributes, false);
@@ -379,14 +379,14 @@
       MockHttpSessionListener hsl0 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal0 = new MockHttpSessionAttributeListener();      
       Context ctx = (Context) jbcm0.getContainer();
-      ctx.addApplicationListenerInstance(hsl0);
-      ctx.addApplicationListenerInstance(hsal0);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal0 }); 
       
       MockHttpSessionListener hsl1 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();      
       ctx = (Context) jbcm1.getContainer();
-      ctx.addApplicationListenerInstance(hsl1);
-      ctx.addApplicationListenerInstance(hsal1);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal1 }); 
       
       // Initial request
       SetAttributesRequestHandler setHandler = new SetAttributesRequestHandler(attributes, false);
@@ -523,14 +523,14 @@
       MockHttpSessionListener hsl0 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal0 = new MockHttpSessionAttributeListener();      
       Context ctx = (Context) jbcm0.getContainer();
-      ctx.addApplicationListenerInstance(hsl0);
-      ctx.addApplicationListenerInstance(hsal0);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal0 });  
       
       MockHttpSessionListener hsl1 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();      
       ctx = (Context) jbcm1.getContainer();
-      ctx.addApplicationListenerInstance(hsl1);
-      ctx.addApplicationListenerInstance(hsal1);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal1 }); 
       
       // Initial request
       SetAttributesRequestHandler setHandler = new SetAttributesRequestHandler(attributes, false);

Modified: trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/PersistentStoreSessionNotificationPolicyTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/PersistentStoreSessionNotificationPolicyTestCase.java	2009-10-31 19:45:32 UTC (rev 95883)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/PersistentStoreSessionNotificationPolicyTestCase.java	2009-11-01 01:46:23 UTC (rev 95884)
@@ -176,14 +176,14 @@
       MockHttpSessionListener hsl0 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal0 = new MockHttpSessionAttributeListener();      
       Context ctx = (Context) mgr0.getContainer();
-      ctx.addApplicationListenerInstance(hsl0);
-      ctx.addApplicationListenerInstance(hsal0);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal0 });  
       
       MockHttpSessionListener hsl1 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();      
       ctx = (Context) mgr1.getContainer();
-      ctx.addApplicationListenerInstance(hsl1);
-      ctx.addApplicationListenerInstance(hsal1);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal1 }); 
       
       // Initial request
       SetAttributesRequestHandler setHandler = new SetAttributesRequestHandler(attributes, false);
@@ -371,14 +371,14 @@
       MockHttpSessionListener hsl0 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal0 = new MockHttpSessionAttributeListener();      
       Context ctx = (Context) mgr0.getContainer();
-      ctx.addApplicationListenerInstance(hsl0);
-      ctx.addApplicationListenerInstance(hsal0);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal0 }); 
       
       MockHttpSessionListener hsl1 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();      
       ctx = (Context) mgr1.getContainer();
-      ctx.addApplicationListenerInstance(hsl1);
-      ctx.addApplicationListenerInstance(hsal1);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal1 }); 
       
       // Initial request
       SetAttributesRequestHandler setHandler = new SetAttributesRequestHandler(attributes, false);
@@ -526,14 +526,14 @@
       MockHttpSessionListener hsl0 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal0 = new MockHttpSessionAttributeListener();      
       Context ctx = (Context) mgr0.getContainer();
-      ctx.addApplicationListenerInstance(hsl0);
-      ctx.addApplicationListenerInstance(hsal0);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal0 });  
       
       MockHttpSessionListener hsl1 = new MockHttpSessionListener();
       MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();      
       ctx = (Context) mgr1.getContainer();
-      ctx.addApplicationListenerInstance(hsl1);
-      ctx.addApplicationListenerInstance(hsal1);
+      ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });  
+      ctx.setApplicationEventListeners(new Object[]{ hsal1 }); 
       
       // Initial request
       SetAttributesRequestHandler setHandler = new SetAttributesRequestHandler(attributes, false);




More information about the jboss-cvs-commits mailing list