[jboss-cvs] jboss-seam/src/test/misc/org/jboss/seam/test ...

Gavin King gavin.king at jboss.com
Fri Jun 8 15:23:07 EDT 2007


  User: gavin   
  Date: 07/06/08 15:23:07

  Modified:    src/test/misc/org/jboss/seam/test  ContextTest.java
  Log:
  fix tests
  
  Revision  Changes    Path
  1.22      +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.21
  retrieving revision 1.22
  diff -u -b -r1.21 -r1.22
  --- ContextTest.java	4 Jun 2007 17:24:42 -0000	1.21
  +++ ContextTest.java	8 Jun 2007 19:23:07 -0000	1.22
  @@ -1,4 +1,4 @@
  -//$Id: ContextTest.java,v 1.21 2007/06/04 17:24:42 gavin Exp $
  +//$Id: ContextTest.java,v 1.22 2007/06/08 19:23:07 gavin Exp $
   package org.jboss.seam.test;
   
   import javax.faces.context.ExternalContext;
  @@ -103,7 +103,7 @@
         assert !Contexts.isSessionContextActive();
         assert !Contexts.isConversationContextActive();
         assert !Contexts.isApplicationContextActive();
  -      assert ((MockHttpSession)externalContext.getSession(false)).getAttributes().size()==5;
  +      assert ((MockHttpSession)externalContext.getSession(false)).getAttributes().size()==6;
         assert ((MockServletContext)externalContext.getContext()).getAttributes().size()==8;
         
         Lifecycle.beginRequest(externalContext);
  @@ -138,7 +138,7 @@
         
         assert Contexts.getConversationContext().getNames().length==2;
         assert Contexts.getApplicationContext().getNames().length==8;
  -      assert Contexts.getSessionContext().getNames().length==3;
  +      assert Contexts.getSessionContext().getNames().length==4;
         
         assert seamVariableResolver.getValue(EL.EL_CONTEXT, null, "zzz").equals("bar");
         assert seamVariableResolver.getValue(EL.EL_CONTEXT, null, "xxx").equals("yyy");
  @@ -157,7 +157,7 @@
         assert !Contexts.isSessionContextActive();
         assert !Contexts.isConversationContextActive();
         assert !Contexts.isApplicationContextActive();
  -      assert ((MockHttpSession)externalContext.getSession(false)).getAttributes().size()==3;
  +      assert ((MockHttpSession)externalContext.getSession(false)).getAttributes().size()==4;
         assert ((MockServletContext)externalContext.getContext()).getAttributes().size()==8;
         
         Lifecycle.endSession( servletContext, new ServletSessionImpl( (HttpSession) externalContext.getSession(true) ) );
  
  
  



More information about the jboss-cvs-commits mailing list