Author: sergeyhalipov
Date: 2007-12-11 10:27:08 -0500 (Tue, 11 Dec 2007)
New Revision: 4716
Modified:
branches/3.1.x/framework/test/src/main/java/org/ajax4jsf/tests/MockExternalContext.java
Log:
Unimplemented methods in shale-tests added.
Modified:
branches/3.1.x/framework/test/src/main/java/org/ajax4jsf/tests/MockExternalContext.java
===================================================================
---
branches/3.1.x/framework/test/src/main/java/org/ajax4jsf/tests/MockExternalContext.java 2007-12-11
15:14:38 UTC (rev 4715)
+++
branches/3.1.x/framework/test/src/main/java/org/ajax4jsf/tests/MockExternalContext.java 2007-12-11
15:27:08 UTC (rev 4716)
@@ -107,22 +107,7 @@
public Iterator getRequestParameterNames() {
if (null == requestParameterNamesIterator) {
- HttpServletRequest request = (HttpServletRequest)getRequest();
- final Enumeration enumer = request.getParameterNames();
-
- requestParameterNamesIterator = new Iterator() {
- public boolean hasNext() {
- return enumer.hasMoreElements();
- }
-
- public Object next() {
- return enumer.nextElement();
- }
-
- public void remove() {
- throw new UnsupportedOperationException();
- }
- };
+ requestParameterNamesIterator = getRequestParameterValuesMap().keySet().iterator();
}
return requestParameterNamesIterator;
}
Show replies by date