Package org.jboss.ejb3.interceptors.test.indirectcontainer

Examples of org.jboss.ejb3.interceptors.test.indirectcontainer.Dummy.hit()


      // TODO: why do we need this explicitly, can't the direct container handle this?
      interceptorContainer.getInstance().setBeanContext(interceptorContainer);
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      Class<?> interfaces[] = { Dummy.class };
      Dummy dummy = (Dummy) Proxy.newProxyInstance(loader, interfaces, interceptorContainer.getInstance());
      dummy.hit();
     
      int current = DummyInterceptor.getInvocations();
     
      assertEquals("DummyInterceptor was not hit", 1, current - previous);
   }
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.