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

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/state 
                        StatefulPortletInvokerTestCase.java
  Log:
  make the PropertyChange instances created via factory methods
  
  Revision  Changes    Path
  1.3       +5 -5      jboss-portal/core/src/main/org/jboss/portal/test/core/state/StatefulPortletInvokerTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: StatefulPortletInvokerTestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-portal/core/src/main/org/jboss/portal/test/core/state/StatefulPortletInvokerTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- StatefulPortletInvokerTestCase.java	31 Jul 2006 19:29:51 -0000	1.2
  +++ StatefulPortletInvokerTestCase.java	22 Aug 2006 12:33:27 -0000	1.3
  @@ -58,7 +58,7 @@
   
   /**
    * @author <a href="mailto:julien at jboss.org">Julien Viet</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   public class StatefulPortletInvokerTestCase extends TestCase
   {
  @@ -159,7 +159,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"))});
            }
         });
   
  @@ -172,7 +172,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"))});
            }
         });
   
  @@ -187,7 +187,7 @@
               try
               {
                  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"))});
                  fail("Was expecting an IllegalStateException");
               }
               catch (IllegalStateException expected)
  @@ -205,7 +205,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");
            }
         });
  
  
  



More information about the jboss-cvs-commits mailing list