[Httpunit-commit] CVS: httpunit/src/com/meterware/servletunit JUnitServlet.java,1.3,1.4
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-04-02 15:29:05
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/servletunit
In directory sc8-pr-cvs1:/tmp/cvs-serv4679/src/com/meterware/servletunit
Modified Files:
JUnitServlet.java
Log Message:
Added default constructor
Index: JUnitServlet.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/servletunit/JUnitServlet.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- JUnitServlet.java 1 Apr 2003 16:19:14 -0000 1.3
+++ JUnitServlet.java 2 Apr 2003 15:28:56 -0000 1.4
@@ -2,7 +2,7 @@
/********************************************************************************************************************
* $Id$
*
- * Copyright (c) 2001, Russell Gold
+ * Copyright (c) 2001-2003, Russell Gold
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
@@ -38,12 +38,17 @@
/**
- * A base class for a servlet which can run unit tests inside a servlet context.
+ * A servlet which can run unit tests inside a servlet context. It may be extended to provide InvocationContext-access
+ * to such tests if a container-specific implementation of InvocationContextFactory is provided.
+ * Combined with ServletTestCase, this would permit
+ * in-container tests of servlets in a fashion similar to that supported by ServletUnit.
*
- * @author <a href="mailto:rus...@ac...">Russell Gold</a>
+ * @author <a href="mailto:rus...@ht...">Russell Gold</a>
**/
-abstract
public class JUnitServlet extends HttpServlet {
+
+ public JUnitServlet() {
+ }
protected JUnitServlet( InvocationContextFactory factory ) {
|