Java Mailing List Archive

Home » Struts Users Mailing List »

user Digest 14 May 2012 09:18:04 -0000 Issue 9602



Author LoginPost Reply

user Digest 14 May 2012 09:18:04 -0000 Issue 9602

Topics (messages 212836 through 212836)

Does the StrutsTestCase test filters defined in web.xml?
 212836 by: Miguel Almeida


To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)


Attachment: user_212836.eml (zipped)
Dear all,

I am using StrutsSpringTestCase (which extends StrutsTestCase) to
perform some acceptance tests (under the skin). I am also using
Displaytag ( ) to build some tables in the view.
This tag supports excel/pdf export, which uses a filter you configure in
web.xml [1]

The way the filter works is, in short: a (odd looking, numerical)
parameter is added to the request. The filter checks for the existence
of that parameter and, if it exists, creates the pdf/excel.

I want to test the creation of this file (and its contents). However,
when I debug the StrutsSpringTestCase test with a breakpoint on that
filter it does not stop there, so my questions are:

1) Does the StrutsTestCase not pass through other filters in your
web.xml, and only goes through the struts filter?
2) If so, is there anything else in the struts tests that could help me
out? How do you suggest I perform this test?

Thank you,

Miguel Almeida

[1]- see
©2008 - Jax Systems, LLC, U.S.A.