Class ServletTestRunner

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ServletTestRunner extends javax.servlet.http.HttpServlet
ServletTestRunner

The server side executor for the Servlet protocol impl.

Supports multiple output modes ("outputmode"): - html - serializedObject

Version:
$Revision: $
Author:
Aslak Knutsen
See Also:
  • Field Details

  • Constructor Details

    • ServletTestRunner

      public ServletTestRunner()
  • Method Details

    • getCurrentServletContext

      public static javax.servlet.ServletContext getCurrentServletContext()
    • init

      public void init() throws javax.servlet.ServletException
      Overrides:
      init in class javax.servlet.GenericServlet
      Throws:
      javax.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface javax.servlet.Servlet
      Overrides:
      destroy in class javax.servlet.GenericServlet
    • doPost

      protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • doGet

      protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • execute

      protected void execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Throws:
      javax.servlet.ServletException
      IOException
    • executeTest

      public void executeTest(javax.servlet.http.HttpServletResponse response, String outputMode, String className, String methodName) throws ClassNotFoundException, IOException
      Throws:
      ClassNotFoundException
      IOException
    • executeEvent

      public void executeEvent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String className, String methodName) throws ClassNotFoundException, IOException
      Throws:
      ClassNotFoundException
      IOException