[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/pojo/test ...
Galder Zamarreno
galder.zamarreno at jboss.com
Wed May 16 08:33:59 EDT 2007
User: gzamarreno
Date: 07/05/16 08:33:59
Modified: tests/functional/org/jboss/cache/pojo/test Address.java
Person.java
Log:
[JBCACHE-1000] JBossCache tutorial demo has been refactored to accomodate PojoCache one so that it uses the same embedded beanshell. PojoCache tutorial has been rewritten to have more similarities with JBossCache one, and has been extended with a section on Collections. Person and Address fields have been made private to promote encapsulation. Person no has a setLanguages(List<String>) to be consistent with get operation. This required fixing the ReplicatedPutWithBulkRemoveTest.
Revision Changes Path
1.3 +4 -4 JBossCache/tests/functional/org/jboss/cache/pojo/test/Address.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Address.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/test/Address.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- Address.java 5 Apr 2007 01:29:22 -0000 1.2
+++ Address.java 16 May 2007 12:33:59 -0000 1.3
@@ -10,7 +10,7 @@
/**
* Test class for PojoCache.
*
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
* <p>Below is the annotation that signifies this class is "prepared" under JBossAop. This is used in
* conjunction with a special jboss-aop.xml (supplied by JBossCache). In addition, this is JDK1.4 style,
* so a annoc Ant build target is needed to pre-compile it.</p>
@@ -20,9 +20,9 @@
@org.jboss.cache.pojo.annotation.Replicable
public class Address
{
- String street = null;
- String city = null;
- int zip = 0;
+ private String street = null;
+ private String city = null;
+ private int zip = 0;
public String getStreet()
{
1.2 +12 -12 JBossCache/tests/functional/org/jboss/cache/pojo/test/Person.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Person.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/test/Person.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Person.java 13 Jan 2007 15:55:01 -0000 1.1
+++ Person.java 16 May 2007 12:33:59 -0000 1.2
@@ -17,7 +17,7 @@
* Test class for PojoCache.
* Person is a POJO that will be instrumented with CacheFieldInterceptor
*
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
* <p>Below is the annotation that signifies this class is "prepared" under JBossAop. This is used in
* conjunction with a special jboss-aop.xml (supplied by PojoCache). In addition, this is JDK1.4 style,
* so a annoc Ant build target is needed to pre-compile it.</p>
@@ -27,19 +27,19 @@
@org.jboss.cache.pojo.annotation.Replicable
public class Person
{
- String name = null;
- int age = 0;
- Map<String, String> hobbies = null;
- Address address = null;
- Set<String> skills;
- List<String> languages;
+ private String name = null;
+ private int age = 0;
+ private Map<String, String> hobbies = null;
+ private Address address = null;
+ private Set<String> skills;
+ private List<String> languages;
// Test for transient field non-replication
- transient String currentStatus = "Active";
+ private transient String currentStatus = "Active";
// Test swapping out the Collection ref with proxy one
// medication will be different when age limit is exceeded.
- List<String> medication = null;
- static final int AGE1 = 50;
- static final int AGE2 = 60;
+ private List<String> medication = null;
+ private static final int AGE1 = 50;
+ private static final int AGE2 = 60;
public Person()
{
@@ -158,7 +158,7 @@
return languages;
}
- public void setLanguages(List languages)
+ public void setLanguages(List<String> languages)
{
this.languages = languages;
}
More information about the jboss-cvs-commits
mailing list