You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by br...@apache.org on 2004/04/26 23:26:34 UTC

cvs commit: cocoon-2.1/src/blocks/woody/test/org/apache/cocoon/woody/datatype FlowJXPathSelectionListTestCase.java

bruno       2004/04/26 14:26:34

  Modified:    src/blocks/woody/test/org/apache/cocoon/woody/datatype
                        FlowJXPathSelectionListTestCase.java
  Log:
  fix testcase after changing storage of flowcontextobject from request to objectmodel.
  
  Revision  Changes    Path
  1.6       +3 -3      cocoon-2.1/src/blocks/woody/test/org/apache/cocoon/woody/datatype/FlowJXPathSelectionListTestCase.java
  
  Index: FlowJXPathSelectionListTestCase.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/test/org/apache/cocoon/woody/datatype/FlowJXPathSelectionListTestCase.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- FlowJXPathSelectionListTestCase.java	9 Mar 2004 13:54:21 -0000	1.5
  +++ FlowJXPathSelectionListTestCase.java	26 Apr 2004 21:26:34 -0000	1.6
  @@ -97,8 +97,8 @@
           Map flowContextObject = new HashMap();
           flowContextObject.put("beans", beans);
           Request request = new MockRequest();
  -        request.setAttribute(FlowHelper.CONTEXT_OBJECT, flowContextObject);
           Map objectModel = new HashMap();
  +        FlowHelper.setContextObject(objectModel, flowContextObject);
           objectModel.put(ObjectModelHelper.REQUEST_OBJECT, request);
           Map contextObjectModel = new HashMap();
           contextObjectModel.put(ContextHelper.CONTEXT_OBJECT_MODEL, objectModel);
  @@ -128,8 +128,8 @@
           Map flowContextObject = new HashMap();
           flowContextObject.put("beans", beans);
           Request request = new MockRequest();
  -        request.setAttribute(FlowHelper.CONTEXT_OBJECT, flowContextObject);
           Map objectModel = new HashMap();
  +        FlowHelper.setContextObject(objectModel, flowContextObject);
           objectModel.put(ObjectModelHelper.REQUEST_OBJECT, request);
           Map contextObjectModel = new HashMap();
           contextObjectModel.put(ContextHelper.CONTEXT_OBJECT_MODEL, objectModel);