com.dotmarketing.servlets.test
Class ServletTestRunner
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.dotmarketing.servlets.test.ServletTestRunner
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class ServletTestRunner
- extends javax.servlet.http.HttpServlet
Created by Jonathan Gamba.
Date: 3/7/12
Time: 7:08 PM
- See Also:
- Serialized Form
|
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Servlet that will respond to an url pattern "/servlet/test".
This call will accept a "class" parameter, we can send in this parameter the class of the junit o suite class to execute. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Servlet that will respond to an url pattern "/servlet/test".
This call will accept a "class" parameter, we can send in this parameter the class of the junit o suite class to execute. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL_TESTS_SUITE
public static final java.lang.String ALL_TESTS_SUITE
- See Also:
- Constant Field Values
RESULT_TYPE_PLAIN
public static final java.lang.String RESULT_TYPE_PLAIN
- See Also:
- Constant Field Values
RESULT_TYPE_FILE
public static final java.lang.String RESULT_TYPE_FILE
- See Also:
- Constant Field Values
localRequest
public static java.lang.ThreadLocal<javax.servlet.http.HttpServletRequest> localRequest
localResponse
public static java.lang.ThreadLocal<javax.servlet.http.HttpServletResponse> localResponse
ServletTestRunner
public ServletTestRunner()
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Servlet that will respond to an url pattern "/servlet/test".
This call will accept a "class" parameter, we can send in this parameter the class of the junit o suite class to execute. If no class is
sent the servlet will execute all the tests it has in the com.AllTestsSuite class.
Examples: http://localhost:8080/servlet/test, http://localhost:8080/servlet/test?class=com.dotmarketing.portlets.structure.factories.FieldFactoryTest
- Overrides:
doGet in class javax.servlet.http.HttpServlet
- Parameters:
request - response -
- Throws:
javax.servlet.ServletException
java.io.IOException- See Also:
com.AllTestsSuite
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Servlet that will respond to an url pattern "/servlet/test".
This call will accept a "class" parameter, we can send in this parameter the class of the junit o suite class to execute. If no class is
sent the servlet will execute all the tests it has in the com.AllTestsSuite class.
Examples: http://localhost:8080/servlet/test, http://localhost:8080/servlet/test?class=com.dotmarketing.portlets.structure.factories.FieldFactoryTest
- Overrides:
doPost in class javax.servlet.http.HttpServlet
- Parameters:
request - response -
- Throws:
javax.servlet.ServletException
java.io.IOException- See Also:
com.AllTestsSuite
Copyright © 2013 dotCMS Inc. All Rights Reserved.