Package org.jboss.test.aop.earwithwebinf.webinf.lib

Examples of org.jboss.test.aop.earwithwebinf.webinf.lib.LibClass.invokeEjb()


         if (EJBInterceptor.invoked) throw new RuntimeException("Should not have invoked EJBInterceptor");
         if (!WebInterceptor.invoked) throw new RuntimeException("Should have invoked WebInterceptor");
        
         EJBInterceptor.invoked = false;
         WebInterceptor.invoked = false;
         ret = libClass.invokeEjb("Test");
         if (!EJBInterceptor.invoked) throw new RuntimeException("Should have invoked EJBInterceptor");
         if (!WebInterceptor.invoked) throw new RuntimeException("Should have invoked WebInterceptor");
         if (!ret.equals("#Test#")) throw new RuntimeException("Did not reach EJBLayer");
        
         //It worked
View Full Code Here


         if (EJBInterceptor.invoked) throw new RuntimeException("Should not have invoked EJBInterceptor");
         if (!WebInterceptor.invoked) throw new RuntimeException("Should have invoked WebInterceptor");
        
         EJBInterceptor.invoked = false;
         WebInterceptor.invoked = false;
         ret = libClass.invokeEjb("Test");
         if (!EJBInterceptor.invoked) throw new RuntimeException("Should have invoked EJBInterceptor");
         if (!WebInterceptor.invoked) throw new RuntimeException("Should have invoked WebInterceptor");
         if (!ret.equals("#Test#")) throw new RuntimeException("Did not reach EJBLayer");
        
         //It worked
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.