Menu

#9 Struts servlet configuration via streams, not files

open
nobody
5
2003-06-12
2003-06-12
No

Hi guys,

currently StrutsTestCase needs config files on file
system: "By default, the Struts ActionServlet will look for
the file WEB-INF/struts-config.xml, so you must place the
directory that contains WEB-INF in your CLASSPATH".
This leads to a kind of integration testing and not real
unit testing (test should not depend on file system,
database or something like that).

Is it possible to give some kind of InputStream or Reader
for configuration purposes? That would be a nice feature
because no file would be required anymore.

Greatings

Christian

Discussion


Log in to post a comment.