Package org.jboss.test.proxyfactory.support

Examples of org.jboss.test.proxyfactory.support.SimpleBean.doSomething()


   public void testStressNoProxy() throws Exception
   {
      for (int i = 0; i < iterations; ++i)
      {
         SimpleBean bean = new SimpleBean();
         bean.doSomething();
      }
   }

   public class MyInvocationHandler implements InvocationHandler
   {
View Full Code Here


      SimpleInterceptor.invoked = null;
      proxy.doSomethingElse();
      assertNull(SimpleInterceptor.invoked);
     
      // But the interface should be advised
      proxy.doSomething();
      assertTrue(bean.invoked);
      Method invoked = SimpleInterceptor.invoked;
      assertNotNull(invoked);
      assertEquals("doSomething", invoked.getName());
   }
View Full Code Here

   public void testStressNoProxy() throws Exception
   {
      for (int i = 0; i < iterations; ++i)
      {
         SimpleBean bean = new SimpleBean();
         bean.doSomething();
      }
   }

   public class MyInvocationHandler implements InvocationHandler
   {
View Full Code Here

      SimpleInterceptor.invoked = null;
      proxy.doSomethingElse();
      assertNull(SimpleInterceptor.invoked);
     
      // But the interface should be advised
      proxy.doSomething();
      assertTrue(bean.invoked);
      Method invoked = SimpleInterceptor.invoked;
      assertNotNull(invoked);
      assertEquals("doSomething", invoked.getName());
   }
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.