On Tue, Mar 19, 2013 at 3:47 PM, Lukasz Lenart <[email protected]> wrote:
> 2013/3/18 Christian Grobmeier <[email protected]>:
>> One problem I face is now that it seems as view-success.jsp is not
>> rendered. When I read the output of this file its always "". I have no
>> idea why it's like that at the moment.
>> I looked into StrutsJUnit4TestCase (line 248) and it seems
>> struts-default.xml is always loaded. So I would expect there are all
>> components there to render it. I already tried ftl, which is used
>> often by teh other testcases, no success.
>
> There was never an option to grab and rendered output, but maybe it
> would be useful, take a look on FreeMarkerResultTest, especially on
> setUp() method, maybe doing the same will solve your problem.

hm not sure if it is actually rendering, but I think it does. If you
look into StrutsJUnit4TestCaseTest it does an execute, which finally
results in returning the input of template-2.ftl. This does not work
with the convention plugin atm. Hopefully I will find out, I will also
look at your reference.

>> That said, besides the return value of executeAction is not useful,
>> this already works:
>>
>> public class StrutsJUnit4ConventionTestCaseTest extends
>> StrutsJUnit4TestCase<ViewAction> {
>> ...
>> ViewAction action = this.getAction();
>> // assert action members
>
> Good job :-)

thanks! I just committed it, feel free to nag ;-)
What is the process, can i go ahead and simply close this issue?
https://issues.apache.org/jira/browse/WW-3778
Or is any other action to be taken?

Cheers


>
>
> Regards
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



--
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to