[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/pojo ...
Ben Wang
bwang at jboss.com
Wed Feb 21 22:09:44 EST 2007
User: bwang
Date: 07/02/21 22:09:44
Modified: tests/functional/org/jboss/cache/pojo LocalTest.java
Log:
upd
Revision Changes Path
1.2 +11 -0 JBossCache/tests/functional/org/jboss/cache/pojo/LocalTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/LocalTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- LocalTest.java 13 Jan 2007 15:55:01 -0000 1.1
+++ LocalTest.java 22 Feb 2007 03:09:44 -0000 1.2
@@ -102,6 +102,17 @@
cache_.detach("/person/test2");
}
+ public void testReplaceSubPojo() throws Exception
+ {
+ Person joe = createPerson("/person/test3", "Joe", 32);
+
+ Address addr = new Address();
+ addr.setCity("Taipei");
+ addr.setZip(106);
+ joe.setAddress(addr);
+ assertEquals("City ", "Taipei", joe.getAddress().getCity());
+ }
+
public void testRemove() throws Exception
{
Person joe = createPerson("/person/test3", "Joe", 32);
More information about the jboss-cvs-commits
mailing list