Author: ivassile
Date: 2012-02-20 09:26:31 -0500 (Mon, 20 Feb 2012)
New Revision: 14328
Modified:
branches/enterprise/JBPAPP_5_1_1_JBPAPP-8149/src/test/unit/org/jboss/seam/test/unit/ContextTest.java
Log:
fixed tests after adding context.setAttribute(SERVLET_CONTEXT_KEY, context) in
JBPAPP-8149
Modified:
branches/enterprise/JBPAPP_5_1_1_JBPAPP-8149/src/test/unit/org/jboss/seam/test/unit/ContextTest.java
===================================================================
---
branches/enterprise/JBPAPP_5_1_1_JBPAPP-8149/src/test/unit/org/jboss/seam/test/unit/ContextTest.java 2012-02-20
11:11:59 UTC (rev 14327)
+++
branches/enterprise/JBPAPP_5_1_1_JBPAPP-8149/src/test/unit/org/jboss/seam/test/unit/ContextTest.java 2012-02-20
14:26:31 UTC (rev 14328)
@@ -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());
Show replies by date