[jboss-cvs] JBossAS SVN: r95883 - 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 15:45:33 EDT 2009
Author: remy.maucherat at jboss.com
Date: 2009-10-31 15:45:32 -0400 (Sat, 31 Oct 2009)
New Revision: 95883
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:
- Try the cleaner API, the other two might be unpredictable.
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 12:07:21 UTC (rev 95882)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/ClusteredSessionNotificationPolicyTestCase.java 2009-10-31 19:45:32 UTC (rev 95883)
@@ -184,14 +184,14 @@
MockHttpSessionListener hsl0 = new MockHttpSessionListener();
MockHttpSessionAttributeListener hsal0 = new MockHttpSessionAttributeListener();
Context ctx = (Context) jbcm0.getContainer();
- ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });
- ctx.setApplicationEventListeners(new Object[]{ hsal0 });
+ ctx.addApplicationListenerInstance(hsl0);
+ ctx.addApplicationListenerInstance(hsal0);
MockHttpSessionListener hsl1 = new MockHttpSessionListener();
MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();
ctx = (Context) jbcm1.getContainer();
- ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });
- ctx.setApplicationEventListeners(new Object[]{ hsal1 });
+ ctx.addApplicationListenerInstance(hsl1);
+ ctx.addApplicationListenerInstance(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.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });
- ctx.setApplicationEventListeners(new Object[]{ hsal0 });
+ ctx.addApplicationListenerInstance(hsl0);
+ ctx.addApplicationListenerInstance(hsal0);
MockHttpSessionListener hsl1 = new MockHttpSessionListener();
MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();
ctx = (Context) jbcm1.getContainer();
- ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });
- ctx.setApplicationEventListeners(new Object[]{ hsal1 });
+ ctx.addApplicationListenerInstance(hsl1);
+ ctx.addApplicationListenerInstance(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.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });
- ctx.setApplicationEventListeners(new Object[]{ hsal0 });
+ ctx.addApplicationListenerInstance(hsl0);
+ ctx.addApplicationListenerInstance(hsal0);
MockHttpSessionListener hsl1 = new MockHttpSessionListener();
MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();
ctx = (Context) jbcm1.getContainer();
- ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });
- ctx.setApplicationEventListeners(new Object[]{ hsal1 });
+ ctx.addApplicationListenerInstance(hsl1);
+ ctx.addApplicationListenerInstance(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 12:07:21 UTC (rev 95882)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/simpleweb/test/PersistentStoreSessionNotificationPolicyTestCase.java 2009-10-31 19:45:32 UTC (rev 95883)
@@ -176,14 +176,14 @@
MockHttpSessionListener hsl0 = new MockHttpSessionListener();
MockHttpSessionAttributeListener hsal0 = new MockHttpSessionAttributeListener();
Context ctx = (Context) mgr0.getContainer();
- ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });
- ctx.setApplicationEventListeners(new Object[]{ hsal0 });
+ ctx.addApplicationListenerInstance(hsl0);
+ ctx.addApplicationListenerInstance(hsal0);
MockHttpSessionListener hsl1 = new MockHttpSessionListener();
MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();
ctx = (Context) mgr1.getContainer();
- ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });
- ctx.setApplicationEventListeners(new Object[]{ hsal1 });
+ ctx.addApplicationListenerInstance(hsl1);
+ ctx.addApplicationListenerInstance(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.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });
- ctx.setApplicationEventListeners(new Object[]{ hsal0 });
+ ctx.addApplicationListenerInstance(hsl0);
+ ctx.addApplicationListenerInstance(hsal0);
MockHttpSessionListener hsl1 = new MockHttpSessionListener();
MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();
ctx = (Context) mgr1.getContainer();
- ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });
- ctx.setApplicationEventListeners(new Object[]{ hsal1 });
+ ctx.addApplicationListenerInstance(hsl1);
+ ctx.addApplicationListenerInstance(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.setApplicationSessionLifecycleListeners(new Object[]{ hsl0 });
- ctx.setApplicationEventListeners(new Object[]{ hsal0 });
+ ctx.addApplicationListenerInstance(hsl0);
+ ctx.addApplicationListenerInstance(hsal0);
MockHttpSessionListener hsl1 = new MockHttpSessionListener();
MockHttpSessionAttributeListener hsal1 = new MockHttpSessionAttributeListener();
ctx = (Context) mgr1.getContainer();
- ctx.setApplicationSessionLifecycleListeners(new Object[]{ hsl1 });
- ctx.setApplicationEventListeners(new Object[]{ hsal1 });
+ ctx.addApplicationListenerInstance(hsl1);
+ ctx.addApplicationListenerInstance(hsal1);
// Initial request
SetAttributesRequestHandler setHandler = new SetAttributesRequestHandler(attributes, false);
More information about the jboss-cvs-commits
mailing list