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

Examples of org.jboss.test.aop.earwithwebinf.webinf.lib.LibClass


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

Related Classes of org.jboss.test.aop.earwithwebinf.webinf.lib.LibClass

Copyright © 2018 www.massapicom. 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.