Class AbstractUniversalTestServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.gatein.pc.test.unit.web.AbstractUniversalTestServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
Direct Known Subclasses:
UTS1, UTS2, UTS3, UTS4

public abstract class AbstractUniversalTestServlet extends jakarta.servlet.http.HttpServlet
Universal test servlet that enables to reuse servlet instances across several tests
See Also:
  • Field Summary

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct a test servlet with a test id computed with the method getTestId(Class).
  • Method Summary

    Modifier and Type
    Method
    Description
    protected PortletTestCase
    Returns Sequence for current testId Returns null if there is no Sequence for current testId
     
    abstract void
     
    protected void
    service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Standart implementation of service() method to handle requests and invoke actions from sequence

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractUniversalTestServlet

      public AbstractUniversalTestServlet()
      Construct a test servlet with a test id computed with the method getTestId(Class).
  • Method Details

    • service

      protected void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException
      Standart implementation of service() method to handle requests and invoke actions from sequence
      Overrides:
      service in class jakarta.servlet.http.HttpServlet
      Parameters:
      request -
      response -
      Throws:
      jakarta.servlet.ServletException
      IOException
    • getSequence

      protected PortletTestCase getSequence(String testId) throws jakarta.servlet.ServletException
      Returns Sequence for current testId Returns null if there is no Sequence for current testId
      Returns:
      Throws:
      jakarta.servlet.ServletException - if there is no SequenceRegistry
    • getServiceJointpoint

      public JoinPoint getServiceJointpoint()
    • reset

      public abstract void reset()