[jboss-cvs] jboss-seam/src/test/misc/org/jboss/seam/test ...
Gavin King
gavin.king at jboss.com
Thu Jun 14 12:29:04 EDT 2007
User: gavin
Date: 07/06/14 12:29:04
Modified: src/test/misc/org/jboss/seam/test ContextTest.java
Log:
fix test
Revision Changes Path
1.26 +6 -4 jboss-seam/src/test/misc/org/jboss/seam/test/ContextTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ContextTest.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/test/misc/org/jboss/seam/test/ContextTest.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- ContextTest.java 10 Jun 2007 20:38:48 -0000 1.25
+++ ContextTest.java 14 Jun 2007 16:29:04 -0000 1.26
@@ -1,4 +1,4 @@
-//$Id: ContextTest.java,v 1.25 2007/06/10 20:38:48 gavin Exp $
+//$Id: ContextTest.java,v 1.26 2007/06/14 16:29:04 gavin Exp $
package org.jboss.seam.test;
import java.util.Map;
@@ -18,6 +18,7 @@
import org.jboss.seam.core.ConversationEntries;
import org.jboss.seam.core.Init;
import org.jboss.seam.core.Manager;
+import org.jboss.seam.core.ServletContexts;
import org.jboss.seam.core.ServletSession;
import org.jboss.seam.el.EL;
import org.jboss.seam.el.SeamELResolver;
@@ -49,6 +50,7 @@
installComponent(appContext, ConversationEntries.class);
installComponent(appContext, Manager.class);
installComponent(appContext, ServletSession.class);
+ installComponent(appContext, ServletContexts.class);
appContext.set( Seam.getComponentName(Init.class), new Init() );
installComponent(appContext, Bar.class);
@@ -105,7 +107,7 @@
assert !Contexts.isConversationContextActive();
assert !Contexts.isApplicationContextActive();
assert ((MockHttpSession)externalContext.getSession(false)).getAttributes().size()==4;
- assert ((MockServletContext)externalContext.getContext()).getAttributes().size()==8;
+ assert ((MockServletContext)externalContext.getContext()).getAttributes().size()==9;
Lifecycle.beginRequest(externalContext);
@@ -138,7 +140,7 @@
assert Contexts.getSessionContext().get("foo")==foo;
assert Contexts.getConversationContext().getNames().length==2;
- assert Contexts.getApplicationContext().getNames().length==8;
+ assert Contexts.getApplicationContext().getNames().length==9;
assert Contexts.getSessionContext().getNames().length==2;
assert seamVariableResolver.getValue(EL.EL_CONTEXT, null, "zzz").equals("bar");
@@ -159,7 +161,7 @@
assert !Contexts.isConversationContextActive();
assert !Contexts.isApplicationContextActive();
assert ((MockHttpSession)externalContext.getSession(false)).getAttributes().size()==2;
- assert ((MockServletContext)externalContext.getContext()).getAttributes().size()==8;
+ assert ((MockServletContext)externalContext.getContext()).getAttributes().size()==9;
Lifecycle.endSession( servletContext, new ServletRequestSessionMap( (HttpServletRequest) externalContext.getRequest() ) );
More information about the jboss-cvs-commits
mailing list