portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/registry/src/test/org/apache/jetspeed/components/portletentity TestPortletEntityAccessComponent.java
Date Wed, 31 Mar 2004 19:34:20 GMT
taylor      2004/03/31 11:34:20

  Modified:    components/registry/src/test/org/apache/jetspeed/components/portletentity
                        TestPortletEntityAccessComponent.java
  Log:
  fix to entity component to use the oid as id if its not set when creating new entities
  
  PR:
  Obtained from:
  Submitted by:	
  Reviewed by:	
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.3       +12 -1     jakarta-jetspeed-2/components/registry/src/test/org/apache/jetspeed/components/portletentity/TestPortletEntityAccessComponent.java
  
  Index: TestPortletEntityAccessComponent.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/registry/src/test/org/apache/jetspeed/components/portletentity/TestPortletEntityAccessComponent.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestPortletEntityAccessComponent.java	25 Mar 2004 21:39:56 -0000	1.2
  +++ TestPortletEntityAccessComponent.java	31 Mar 2004 19:34:20 -0000	1.3
  @@ -119,6 +119,17 @@
           assertTrue("entity id ", entity2.getId().toString().equals(TEST_ENTITY));
           assertNotNull("entity's portlet ", entity2.getPortletDefinition());
           
  +        StoreablePortletEntityDelegate entity5 = entityAccess.newPortletEntityInstance(pd);
  +        System.out.println("before storing entity: "  + entity5.getId());
  +        
  +        //entity.setId(TEST_ENTITY);
  +        entityAccess.storePortletEntity(entity5);
  +        System.out.println("store done: " + entity5.getId());        
  +
  +        StoreablePortletEntityDelegate entity6 = entityAccess.getPortletEntity(entity5.getId());
  +        assertNotNull(entity6);
  +        System.out.println("reget : " + entity6.getId());        
  +        
           // TODO: test preferences
           System.out.println("PortletEntity Test completed.");
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message