Package org.jboss.cache.aop.test

Examples of org.jboss.cache.aop.test.Resource


   public void testTransientAnnotation() throws Exception
   {
      log_.info("testTransientAnnotation() ....");
      Gadget ga = new Gadget();
      ga.setName("Printer");
      Resource res = new Resource();
      res.setName("Inet");
      res.setConnection("Eth0");
      ga.setResource(res);

      cache_.putObject("/gadget", ga);
      Object obj = cache_.getObject("/gadget");
      assertEquals(ga, obj);
View Full Code Here


   public void testSimple() throws Exception
   {
      log_.info("testSimple() ....");

      Resource res = new Resource();
      res.setName("mapping");
      res.setConnection("wire");
      String s = "This is a test";
      byte by = 1;
      byte[] b = new byte[1];
      b[0] = by;
      res.setByte(b);

      cache_.putObject("/resource", res);

      Resource remote = (Resource)cache1_.getObject("/resource");
      assertEquals("Name ", res.getName(), remote.getName());
      assertEquals("Bytes ", res.getByte()[0], remote.getByte()[0]);
   }
View Full Code Here

   public void testTransientAnnotation() throws Exception
   {
      log_.info("testTransientAnnotation() ....");
      Gadget ga = new Gadget();
      ga.setName("Printer");
      Resource res = new Resource();
      res.setName("Inet");
      res.setConnection("Eth0");
      ga.setResource(res);

      cache_.putObject("/gadget", ga);
      Object obj = cache_.getObject("/gadget");
      assertEquals(ga, obj);
View Full Code Here

TOP

Related Classes of org.jboss.cache.aop.test.Resource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.