[seam-commits] Seam SVN: r14326 - branches/enterprise/JBPAPP_5_0/src/test/unit/org/jboss/seam/test/unit.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Feb 20 03:18:14 EST 2012


Author: manaRH
Date: 2012-02-20 03:18:11 -0500 (Mon, 20 Feb 2012)
New Revision: 14326

Modified:
   branches/enterprise/JBPAPP_5_0/src/test/unit/org/jboss/seam/test/unit/ContextTest.java
Log:
fixed tests after adding context.setAttribute(SERVLET_CONTEXT_KEY, context) in JBPAPP-8150

Modified: branches/enterprise/JBPAPP_5_0/src/test/unit/org/jboss/seam/test/unit/ContextTest.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/unit/org/jboss/seam/test/unit/ContextTest.java	2012-02-17 22:15:11 UTC (rev 14325)
+++ branches/enterprise/JBPAPP_5_0/src/test/unit/org/jboss/seam/test/unit/ContextTest.java	2012-02-20 08:18:11 UTC (rev 14326)
@@ -118,7 +118,7 @@
         assert ((MockHttpSession) externalContext.getSession(false))
                 .getAttributes().size() == 4;
         assert ((MockServletContext) externalContext.getContext())
-                .getAttributes().size() == 11;
+                .getAttributes().size() == 12;
 
         FacesLifecycle.beginRequest(externalContext);
 
@@ -151,7 +151,7 @@
         assert Contexts.getSessionContext().get("foo") == foo;
 
         assert Contexts.getConversationContext().getNames().length == 2;
-        assert Contexts.getApplicationContext().getNames().length == 11;
+        assert Contexts.getApplicationContext().getNames().length == 12;
         assert Contexts.getSessionContext().getNames().length == 2;
 
         assert seamVariableResolver.getValue(elContext, null, "zzz").equals(
@@ -186,7 +186,7 @@
         assert ((MockHttpSession) externalContext.getSession(false))
                 .getAttributes().size() == 3; // foo, zzz, org.jboss.seam.core.conversationEntries
         assert ((MockServletContext) externalContext.getContext())
-                .getAttributes().size() == 11;
+                .getAttributes().size() == 12;
 
         ServletLifecycle.endSession(((HttpServletRequest) externalContext
                 .getRequest()).getSession());



More information about the seam-commits mailing list