[jboss-cvs] jboss-portal/core/src/main/org/jboss/portal/test/core/model/instance ...

Julien Viet julien at jboss.com
Tue Aug 22 08:33:27 EDT 2006


  User: julien  
  Date: 06/08/22 08:33:27

  Modified:    core/src/main/org/jboss/portal/test/core/model/instance 
                        InstanceContainerTestCase.java
  Log:
  make the PropertyChange instances created via factory methods
  
  Revision  Changes    Path
  1.15      +5 -5      jboss-portal/core/src/main/org/jboss/portal/test/core/model/instance/InstanceContainerTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InstanceContainerTestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-portal/core/src/main/org/jboss/portal/test/core/model/instance/InstanceContainerTestCase.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- InstanceContainerTestCase.java	31 Jul 2006 19:29:51 -0000	1.14
  +++ InstanceContainerTestCase.java	22 Aug 2006 12:33:27 -0000	1.15
  @@ -59,7 +59,7 @@
    *
    * @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
    * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
  - * @version $Revision: 1.14 $
  + * @version $Revision: 1.15 $
    * @since Apr 4, 2006
    */
   public class InstanceContainerTestCase extends TestCase
  @@ -276,7 +276,7 @@
            public void invoke(PortletInvocation invocation)
            {
               AbstractPropertyContext props = (AbstractPropertyContext)invocation.getAttribute(PortletInvocation.PREFERENCES_ATTRIBUTE);
  -            props.update(new PropertyChange[]{new PropertyChange(PropertyChange.PREF_SET, "abc", new StringValue("def"))});
  +            props.update(new PropertyChange[]{PropertyChange.newUpdate("abc", new StringValue("def"))});
            }
         });
   
  @@ -342,7 +342,7 @@
            public void invoke(PortletInvocation invocation)
            {
               AbstractPropertyContext props = (AbstractPropertyContext)invocation.getAttribute(PortletInvocation.PREFERENCES_ATTRIBUTE);
  -            props.update(new PropertyChange[]{new PropertyChange(PropertyChange.PREF_SET, "abc", new StringValue("def"))});
  +            props.update(new PropertyChange[]{PropertyChange.newUpdate("abc", new StringValue("def"))});
            }
         });
   
  @@ -386,7 +386,7 @@
            public void invoke(PortletInvocation invocation)
            {
               AbstractPropertyContext props = (AbstractPropertyContext)invocation.getAttribute(PortletInvocation.PREFERENCES_ATTRIBUTE);
  -            props.update(new PropertyChange[]{new PropertyChange(PropertyChange.PREF_SET, "abc", new StringValue("def"))});
  +            props.update(new PropertyChange[]{PropertyChange.newUpdate("abc", new StringValue("def"))});
               throw new RuntimeException("custom_message");
            }
         });
  @@ -437,7 +437,7 @@
            public void invoke(PortletInvocation invocation)
            {
               AbstractPropertyContext props = (AbstractPropertyContext)invocation.getAttribute(PortletInvocation.PREFERENCES_ATTRIBUTE);
  -            props.update(new PropertyChange[]{new PropertyChange(PropertyChange.PREF_SET, "abc", new StringValue("def"))});
  +            props.update(new PropertyChange[]{PropertyChange.newUpdate("abc", new StringValue("def"))});
            }
         });
   
  
  
  



More information about the jboss-cvs-commits mailing list