Package org.jboss.cache.marshall.data

Examples of org.jboss.cache.marshall.data.Person


      log("creating cache2");

      cache2 = createCache("TestCache");
      addr_ = new Address();
      addr_.setCity("San Jose");
      ben_ = new Person();
      ben_.setName("Ben");
      ben_.setAddress(addr_);

      // Pause to give caches time to see each other
      TestingUtil.blockUntilViewsReceived(new CacheSPI[]{cache1, cache2}, 60000);
View Full Code Here


   }

   public void testPlainPut() throws Exception
   {
      cache1.put(aop, "person", ben_);
      Person ben2 = (Person) cache2.get(aop, "person");
      assertNotNull("Person from 2nd cache should not be null ", ben2);
      assertEquals(ben_.toString(), ben2.toString());
   }
View Full Code Here

      if (useMarshalledValues) resetContextClassLoader();
      if (useMarshalledValues) Thread.currentThread().setContextClassLoader(getFailingClassLoader());
      try
      {
         if (useMarshalledValues) Thread.currentThread().setContextClassLoader(c2);
         @SuppressWarnings("unused")
         Person person = (Person) cache2.get(aop, "person");
      }
      catch (ClassCastException ex)
      {
         // That's ok.
View Full Code Here

      cache2 = createCache("TestCache");

      addr_ = new Address();
      addr_.setCity("San Jose");
      ben_ = new Person();
      ben_.setName("Ben");
      ben_.setAddress(addr_);

      // Pause to give caches time to see each other
      TestingUtil.blockUntilViewsReceived(new CacheSPI[]{cache1, cache2}, 60000);
View Full Code Here

      beginTransaction();
      cache1.put(aop, "person", ben_);
      cache1.put(aop, "person1", ben_);
      commit();
      TestingUtil.sleepThread(1000);
      Person ben2 = (Person) cache2.get(aop, "person");
      assertNotNull("Person from 2nd cache should not be null ", ben2);
      assertEquals(ben_.toString(), ben2.toString());
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.marshall.data.Person

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.