jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
to tiles.defs.xml as suggested, but it gave an XML parse exception. What can be the solution;? Thanks jUnit newbie Ezgi :) -- View this message in context: http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18131822.html Sent from the Struts - User mailing list archive at Nabble.com

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi [EMAIL PROTECTED]: If I include the tiles part in struts.xml, it gives a NullPointerException : Did you add the StrutsTilesListener in your web.xml? http://cwiki.apache.org/confluence/display/WW/Tiles+Plugin Did you configure Tiles correctly? Antonio

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi [EMAIL PROTECTED]: If you look at the tutorial I refer, you can understand that I am not the only one who have this problem. I try to set the configuration file to tiles.defs.xml as suggested, but it gave an XML parse exception. Can we see the Tiles definition files that you

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18132170.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi [EMAIL PROTECTED]: This is the tiles.defs.xml : listener listener-class org.apache.struts2.tiles.StrutsTilesListener /listener-class /listener servlet servlet-nametiles/servlet-name

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
/tutorial/configuration.html Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jUnit-Testing-Problem-with-Tiles

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Dave Newton
--- On Thu, 6/26/08, Antonio Petrelli [EMAIL PROTECTED] wrote: The problem is that you are using StrutsTilesListener (that loads /WEB-INF/tiles.xml by default), TilesServlet and TilesFilter at the same time. Two is one, one is none! Three is... three is right out. You're just mad because of

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 Dave Newton [EMAIL PROTECTED]: --- On Thu, 6/26/08, Antonio Petrelli [EMAIL PROTECTED] wrote: The problem is that you are using StrutsTilesListener (that loads /WEB-INF/tiles.xml by default), TilesServlet and TilesFilter at the same time. Two is one, one is none! Three is... three

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi [EMAIL PROTECTED]: I tried three of them seperatley, but it did not work. Please clarify, what do you mean with it did not work? Do you receive an exception at startup? Should I modify the configuration variable in the BaseStrutsTestCase? I did not add there web.xml and

[OT] Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Dave Newton
--- On Thu, 6/26/08, Antonio Petrelli [EMAIL PROTECTED] wrote: Eh? I know I am supposed to laugh, but since I am Italian could you explain it a little ;-) Or cry; Spain whupped ya' 4-2. Dave - To unsubscribe, e-mail: [EMAIL

[OT] Euro 2008 (WAS: Re: [OT] Re: jUnit Testing Problem with Tiles)

2008-06-26 Thread Antonio Petrelli
2008/6/26 Al Sutton [EMAIL PROTECTED]: At least they made it to the tournament :( Ah now I got it. You know, I removed the tournament from my memory after the penalty kicks :-D I see the positive point though, Donadoni is going away and Lippi is coming back. Antonio

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18132968.html Sent from the Struts

Re: [OT] Euro 2008 (WAS: Re: [OT] Re: jUnit Testing Problem with Tiles)

2008-06-26 Thread Antonio Petrelli
2008/6/26 Antonio Petrelli [EMAIL PROTECTED]: 2008/6/26 Al Sutton [EMAIL PROTECTED]: At least they made it to the tournament :( Ah now I got it. You know, I removed the tournament from my memory after the penalty kicks :-D Oh by the way, Al, I have to say one little secret. We sent you

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi [EMAIL PROTECTED]: I have just replaced the code with the new one, isn't it the one you suggested? Yes, but you had to adapt it to your needs. By the way, do you still receive a parsing error, at startup? Antonio

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18133212.html Sent from the Struts - User mailing list archive at Nabble.com

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi [EMAIL PROTECTED]: If I add the location of web.xml or any other thing to here private static final String CONFIG_LOCATIONS = file:src/struts.xml ; I got a parsing error. I am not very experienced with tiles, I just test the code in a big project. The problem is , if I do not

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
configuring the artificial environment? Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jUnit-Testing

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi [EMAIL PROTECTED]: In my action, I have a reference to Http request and it requires to access the HttpServletRequest object, so I can not easily test the action with just calling the execute method and comparing the result. So, I have found out a solution from the link that I

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
in context: http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18133751.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi [EMAIL PROTECTED]: If you look at the link, you can understand the problem. Whose initialization is the one that you can't understand? I see, but I am sorry, without initialization Tiles won't work. Antonio -

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jUnit-Testing-Problem-with-Tiles-tp18131822p18133946.html

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi [EMAIL PROTECTED]: How can I initialize tiles in this context? In some ways, you have to manage to put StrutsTilesListener, or at least its code, but I don't really know how to do it. I suggest to ask the BaseStrutsTestCase developers. Antonio

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
/jUnit-Testing-Problem-with-Tiles-tp18131822p18134225.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]