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

Examples of org.jboss.test.aop.earwithwebinf.webinf.classes.ClassesClass


   public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      try
      {
         EJBInterceptor.invoked = false;
         WebInterceptor.invoked = false;
         ClassesClass classesClass = new ClassesClass();
         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;
         String ret = classesClass.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");
        
         EJBInterceptor.invoked = false;
View Full Code Here


   public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      try
      {
         EJBInterceptor.invoked = false;
         WebInterceptor.invoked = false;
         ClassesClass classesClass = new ClassesClass();
         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;
         String ret = classesClass.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");
        
         EJBInterceptor.invoked = false;
View Full Code Here

TOP

Related Classes of org.jboss.test.aop.earwithwebinf.webinf.classes.ClassesClass

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.