Author: jason.greene(a)jboss.com
Date: 2007-09-20 15:01:31 -0400 (Thu, 20 Sep 2007)
New Revision: 4493
Modified:
pojo/trunk/src/test/java/org/jboss/cache/pojo/LocalTest.java
Log:
Add Fqn usage
Modified: pojo/trunk/src/test/java/org/jboss/cache/pojo/LocalTest.java
===================================================================
--- pojo/trunk/src/test/java/org/jboss/cache/pojo/LocalTest.java 2007-09-20 17:10:12 UTC
(rev 4492)
+++ pojo/trunk/src/test/java/org/jboss/cache/pojo/LocalTest.java 2007-09-20 19:01:31 UTC
(rev 4493)
@@ -15,6 +15,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.aop.proxy.ClassProxy;
+import org.jboss.cache.Fqn;
import org.jboss.cache.pojo.test.Address;
import org.jboss.cache.pojo.test.Person;
import org.jboss.cache.pojo.test.Student;
@@ -29,7 +30,7 @@
*/
@Test(groups = {"functional"})
-public class LocalTest
+public class LocalTest
{
Log log = LogFactory.getLog(LocalTest.class);
PojoCache cache_;
@@ -96,6 +97,16 @@
assertEquals("String ", test, cache_.find("test"));
}
+ public void testSimpleTypeFqn() throws Exception
+ {
+ log.info("testSimpleType() ....");
+ String test = "This is a test";
+ cache_.attach(Fqn.fromString("/test"), test);
+
+ assertEquals("String ", test,
cache_.find(Fqn.fromString("/test")));
+ }
+
+
public void testModification() throws Exception
{
Person joe = createPerson("/person/test2", "Joe", 32);
Show replies by date