[jboss-cvs] jboss-seam/src/test/misc/org/jboss/seam/test ...
Gavin King
gavin.king at jboss.com
Sun Jun 10 16:38:48 EDT 2007
User: gavin
Date: 07/06/10 16:38:48
Modified: src/test/misc/org/jboss/seam/test ContextTest.java
Log:
fix test
Revision Changes Path
1.25 +4 -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.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- ContextTest.java 10 Jun 2007 19:40:28 -0000 1.24
+++ ContextTest.java 10 Jun 2007 20:38:48 -0000 1.25
@@ -1,4 +1,4 @@
-//$Id: ContextTest.java,v 1.24 2007/06/10 19:40:28 gavin Exp $
+//$Id: ContextTest.java,v 1.25 2007/06/10 20:38:48 gavin Exp $
package org.jboss.seam.test;
import java.util.Map;
@@ -104,7 +104,7 @@
assert !Contexts.isSessionContextActive();
assert !Contexts.isConversationContextActive();
assert !Contexts.isApplicationContextActive();
- assert ((MockHttpSession)externalContext.getSession(false)).getAttributes().size()==6;
+ assert ((MockHttpSession)externalContext.getSession(false)).getAttributes().size()==4;
assert ((MockServletContext)externalContext.getContext()).getAttributes().size()==8;
Lifecycle.beginRequest(externalContext);
@@ -139,7 +139,7 @@
assert Contexts.getConversationContext().getNames().length==2;
assert Contexts.getApplicationContext().getNames().length==8;
- assert Contexts.getSessionContext().getNames().length==4;
+ assert Contexts.getSessionContext().getNames().length==2;
assert seamVariableResolver.getValue(EL.EL_CONTEXT, null, "zzz").equals("bar");
assert seamVariableResolver.getValue(EL.EL_CONTEXT, null, "xxx").equals("yyy");
@@ -158,7 +158,7 @@
assert !Contexts.isSessionContextActive();
assert !Contexts.isConversationContextActive();
assert !Contexts.isApplicationContextActive();
- assert ((MockHttpSession)externalContext.getSession(false)).getAttributes().size()==4;
+ assert ((MockHttpSession)externalContext.getSession(false)).getAttributes().size()==2;
assert ((MockServletContext)externalContext.getContext()).getAttributes().size()==8;
Lifecycle.endSession( servletContext, new ServletRequestSessionMap( (HttpServletRequest) externalContext.getRequest() ) );
More information about the jboss-cvs-commits
mailing list