Package org.gatein.pc.test.unit

Examples of org.gatein.pc.test.unit.PortletTestCase


      log.debug("JoinPoint '" + actionJoinPoint + "' invoked for '"
         + ctx.getTestName() + "' testId and '" +
         +ctx.getRequestCount() + "' request count");

      //
      PortletTestCase portletTestCase = getSequence(ctx.getTestName());

      //
      if (portletTestCase != null)
      {
         //
         TestAction action = portletTestCase.getAction(ctx.getRequestCount(), actionJoinPoint);

         //
         Response response;
         if (action instanceof PortletTestAction)
         {
View Full Code Here


         log.debug("JoinPoint '" + eventJoinPoint + "' invoked for '"
            + ctx.getTestName() + "' testId and '" +
            +ctx.getRequestCount() + "' request count");

         //
         PortletTestCase portletTestCase = getSequence(ctx.getTestName());

         //
         if (portletTestCase != null)
         {
            //
            TestAction action = portletTestCase.getAction(ctx.getRequestCount(), eventJoinPoint);

            //
            if (action != null)
            {
               Response response = null;
View Full Code Here

         reset();
      }

      // Get the action
      TestAction action = null;
      PortletTestCase portletTestCase = getSequence(ctx.getTestName());
      if (portletTestCase != null)
      {
         action = portletTestCase.getAction(ctx.getRequestCount(), renderJoinPoint);
      }

      //
      if (action != null)
      {
View Full Code Here

         + ctx.getTestName() + "' testId and '" +
         +ctx.getRequestCount() + "' request count");

      // Get the action
      TestAction action = null;
      PortletTestCase portletTestCase = getSequence(ctx.getTestName());
      if (portletTestCase != null)
      {
         action = portletTestCase.getAction(ctx.getRequestCount(), resourceJoinPoint);

      }

      //
      Response response;
View Full Code Here

    * @return
    * @throws PortletException if there is no SequenceRegistry
    */
   private PortletTestCase getSequence(String testId) throws PortletException
   {
      PortletTestCase testCase = PortletTestServlet.getTestCase(testId);
      if (testCase == null)
      {
         log.error("No test suite object found in current context");
         throw new PortletException("No test suite object found in context");
      }
View Full Code Here

      if (ctx.getRequestCount() == 0)
      {
         reset();
      }

      PortletTestCase portletTestCase = getSequence(ctx.getTestName());
      if (portletTestCase != null)
      {
         TestAction action = portletTestCase.getAction(ctx.getRequestCount(), getServiceJointpoint());
         if (action != null && action instanceof ServletServiceTestAction)
         {
            log.info("Found Action for this jointpoint");
            Response dr = ((ServletServiceTestAction)action).execute(this, request, response, ctx);
            if (dr != null)
View Full Code Here

    * @return
    * @throws javax.servlet.ServletException if there is no SequenceRegistry
    */
   protected PortletTestCase getSequence(String testId) throws ServletException
   {
      PortletTestCase testCase = PortletTestServlet.getTestCase(testId);
      if (testCase == null)
      {
         log.error("No test case object found in current context");
         throw new ServletException("No test case object found in context");
      }
View Full Code Here

         throw new ServletException(e);
      }

      // Setup context
      DriverContext ctx = new DriverContext(Integer.parseInt(step), payload);
      PortletTestCase testCase = PortletTestServlet.getTestCase(testName);
      context = new PortletTestContext(testName, testCase, ctx);

      //
      resp.setStatus(200);
   }
View Full Code Here

TOP

Related Classes of org.gatein.pc.test.unit.PortletTestCase

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.