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-tp18131822p18134225.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscrib

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
without initialization Tiles won't work. > > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message

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
nnot understand. > > Antonio > > ------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/jUnit-T

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 th

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
e, 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-tp18131822p18133546.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

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-tp18131

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: [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

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
gt;> > > Have you got a "classpath-defs.xml" anywhere in your code? If not, remove > it. > > Antonio > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTE

[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: [OT] Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Al Sutton
At least they made it to the tournament :( Dave Newton wrote: --- 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 ---

[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: [EMA

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 an

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

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

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
> Choose one and configure it. I suggest to use StrutsTilesListener > only. Configuring it means putting a context parameter. See: > http://tiles.apache.org/tutorial/configuration.html > > Antonio > > ---

Re: jUnit Testing Problem with Tiles

2008-06-26 Thread Antonio Petrelli
2008/6/26 ezgi <[EMAIL PROTECTED]>: > > This is the tiles.defs.xml : > > >org.apache.struts2.tiles.StrutsTilesListener > > > > >tiles > >org.apache.tiles.web.start

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-tp18131822p18132170.html Sent from the Struts - User mailing lis

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 yo

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 --

jUnit Testing Problem with Tiles

2008-06-26 Thread ezgi
derstand 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. What can be the solution;? Thanks jUnit newbie Ezgi :) -- View this message in context: http://www.nabble.com/jUnit-Testing-