Package org.jboss.test.cluster.ejb3.stateful.nested.base.xpc

Examples of org.jboss.test.cluster.ejb3.stateful.nested.base.xpc.NestedXPCMonitor.removeParent()


      
      removeBean(parent);
      
      // Confirm parent is dead
      Assert.assertEquals("Remote counter (via dead parent): ", -1, monitor.incrementParent());
      Assert.assertFalse("parent.remove() fails", monitor.removeParent());
     
      // Confirm nested beans still work following parent remove
      Assert.assertEquals("Remote counter (direct):", 2 ,nested.increment());     
      Assert.assertEquals("Local counter (monitor):", 1 , monitor.incrementLocalNested());
      Assert.assertEquals("Deep nested id", deepId, monitor.getDeepNestedId());
View Full Code Here


                        monitor.compareNestedToDeepNested(id));
      Assert.assertTrue("Local nested and localDeepNested share a ref",
                        monitor.compareLocalNestedToLocalDeepNested(id));
     
      // Remove the parent and see that things still work
      Assert.assertTrue("Parent removed", monitor.removeParent());
      
      // Confirm parent is dead
      Assert.assertFalse("parent.remove() fails", monitor.removeParent());
     
      Assert.assertTrue("Remote nested and local nested do not share a ref",
View Full Code Here

     
      // Remove the parent and see that things still work
      Assert.assertTrue("Parent removed", monitor.removeParent());
      
      // Confirm parent is dead
      Assert.assertFalse("parent.remove() fails", monitor.removeParent());
     
      Assert.assertTrue("Remote nested and local nested do not share a ref",
            monitor.compareNestedToLocalNested(id));
      Assert.assertTrue("Remote nested and deepNested share a ref",
            monitor.compareNestedToDeepNested(id));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.