Configuring J2EEUnit is very simple. You simply need to provide a file
named j2eeunit.properties
that you will put in your
CLASSPATH (meaning you need to put the directory where this file is
located in your CLASSPATH, not the file itself !).
Moreover, in order for J2EEUnit to work, you need to register a
generic servlet (called the Redirector servlet) and/or a generic JSP
(called the Redirector JSP) in your web.xml
file if you are using a web application or in your specific Servlet
engine configuration file if it does not support web applications
(see the installation
section for help on modifying your web.xml
file).
 |
You need the Redirector JSP only if you want to make unit tests that
need to access JSP implicit objects (PageContext and
JspWriter ).
|