keysIterator = keys.iterator(); } if (keys != null) { while (keysIterator.hasNext()) { Integer key = (Integer) keysIterator.next(); verifyScopeAttributes( key.intValue(), (List) existingAttributesList.get(key), (List) nonExistingAttributesList.get(key));
if (keys != null) { keysIterator = keys.iterator(); while (keysIterator.hasNext()) { Integer key = (Integer) keysIterator.next(); verifyScopeAttributes( key.intValue(), null, (List) nonExistingAttributesList.get(key)); }
	protected void doTest(		Map itemsToPutInRequest,		Map itemsToPutInSession,		String forward,		String forwardPath,		Map existingAttributesList,		Map nonExistingAttributesList,		String[] actionErrors) {		String pathOfAction = getRequestPathInfoPathAction();		String nameOfAction = getRequestPathInfoNameAction();		if ((pathOfAction != null) && (nameOfAction != null)) {			setRequestPathInfo(				getRequestPathInfoPathAction(),				getRequestPathInfoNameAction());		}		if (itemsToPutInRequest != null) {			Set keys = itemsToPutInRequest.keySet();			Iterator keysIterator = keys.iterator();			while (keysIterator.hasNext()) {				String key = (String) keysIterator.next();				String item = (String) itemsToPutInRequest.get(key);				addRequestParameter(key, item);			}		}		if (itemsToPutInSession != null) {			Set keys = itemsToPutInSession.keySet();			Iterator keysIterator = keys.iterator();			while (keysIterator.hasNext()) {				String key = (String) keysIterator.next();				Object item = itemsToPutInSession.get(key);				getSession().setAttribute(key, item);			}		}		if (((pathOfAction != null) && (nameOfAction != null))			&& ((forward != null) || (forwardPath != null))) {			//			perform			actionPerform();			//			checks for errors			if (actionErrors == null)				verifyNoActionErrors();			else				verifyActionErrors(actionErrors);			//			checks forward						if (forward != null)				verifyForward(forward);			//			checks forward path						if (forwardPath != null)				verifyForwardPath(forwardPath);			//			CurricularYearAndSemesterAndInfoExecutionDegree ctx = SessionUtils.getContext(getRequest());			//			assertNotNull("Context is null!", ctx);			Set keys = null;			Iterator keysIterator = null;						// FIXME : must test the two collections (existing and nonexisting): if we want that x attribute exists and attribute y not exists.  						if (existingAttributesList != null) {				keys = existingAttributesList.keySet();				keysIterator = keys.iterator();			} else if (nonExistingAttributesList != null) {				keys = nonExistingAttributesList.keySet();				keysIterator = keys.iterator();			}			if (keys != null) {				while (keysIterator.hasNext()) {					Integer key = (Integer) keysIterator.next();					verifyScopeAttributes(						key.intValue(),						(List) existingAttributesList.get(key),						(List) nonExistingAttributesList.get(key));				}			}		}	}