Examples of doSomethingElse()


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

   public void testSimple() throws Exception
   {
      SimpleInterceptor.invoked = null;
      SimpleBean bean = new SimpleBean();
      SimpleBean proxy = (SimpleBean) assertCreateProxy(bean, SimpleBean.class);
      proxy.doSomethingElse();
      assertTrue(bean.invoked);
      Method invoked = SimpleInterceptor.invoked;
      assertNotNull(invoked);
      assertEquals("doSomethingElse", invoked.getName());
   }
View Full Code Here

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

      SimpleBean bean = new SimpleBean();

      // Test non interface method isn't advised
      SimpleBean proxy = (SimpleBean) assertCreateProxy(bean, SimpleBean.class);
      SimpleInterceptor.invoked = null;
      proxy.doSomethingElse();
      assertNull(SimpleInterceptor.invoked);
     
      // But the interface should be advised
      proxy.doSomething();
      assertTrue(bean.invoked);
View Full Code Here

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

   public void testSimple() throws Exception
   {
      SimpleInterceptor.invoked = null;
      SimpleBean bean = new SimpleBean();
      SimpleBean proxy = (SimpleBean) assertCreateProxy(bean, SimpleBean.class);
      proxy.doSomethingElse();
      assertTrue(bean.invoked);
      Method invoked = SimpleInterceptor.invoked;
      assertNotNull(invoked);
      assertEquals("doSomethingElse", invoked.getName());
   }
View Full Code Here

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

      SimpleBean bean = new SimpleBean();

      // Test non interface method isn't advised
      SimpleBean proxy = (SimpleBean) assertCreateProxy(bean, SimpleBean.class);
      SimpleInterceptor.invoked = null;
      proxy.doSomethingElse();
      assertNull(SimpleInterceptor.invoked);
     
      // But the interface should be advised
      proxy.doSomething();
      assertTrue(bean.invoked);
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.