Re: Struts2 and TestNG

2009-10-07 Thread Dan R. Olsen III

The convention plugin is in the classpath for the tests.

On 10/6/2009 3:57 PM, Musachy Barroso wrote:

also, make sure the convention plugin is in the classpath for the tests.

musachy

On Tue, Oct 6, 2009 at 2:22 PM, Alex Siman  wrote:
   


dolsen-2 wrote:
 

Does this method work if I declare my actions with annotations instead of
declaring them in struts.xml?

   

Of course, I also declare actions w/ annos.


dolsen-2 wrote:
 

It looks like from the errors I get that it is trying to read the action
definitions from the struts.xml file.

   

Tests must have struts.xml on class path. My struts.xml contains some
constants, interceptors, but not the actions.

--
View this message in context: 
http://www.nabble.com/Struts2-and-TestNG-tp25762448p25776794.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


 



   


Re: Struts2 and TestNG

2009-10-06 Thread Musachy Barroso
also, make sure the convention plugin is in the classpath for the tests.

musachy

On Tue, Oct 6, 2009 at 2:22 PM, Alex Siman  wrote:
>
>
> dolsen-2 wrote:
>>
>> Does this method work if I declare my actions with annotations instead of
>> declaring them in struts.xml?
>>
> Of course, I also declare actions w/ annos.
>
>
> dolsen-2 wrote:
>>
>> It looks like from the errors I get that it is trying to read the action
>> definitions from the struts.xml file.
>>
> Tests must have struts.xml on class path. My struts.xml contains some
> constants, interceptors, but not the actions.
>
> --
> View this message in context: 
> http://www.nabble.com/Struts2-and-TestNG-tp25762448p25776794.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 and TestNG

2009-10-06 Thread Alex Siman


dolsen-2 wrote:
> 
> Does this method work if I declare my actions with annotations instead of
> declaring them in struts.xml?
> 
Of course, I also declare actions w/ annos.


dolsen-2 wrote:
> 
> It looks like from the errors I get that it is trying to read the action
> definitions from the struts.xml file.
> 
Tests must have struts.xml on class path. My struts.xml contains some
constants, interceptors, but not the actions.

-- 
View this message in context: 
http://www.nabble.com/Struts2-and-TestNG-tp25762448p25776794.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts2 and TestNG

2009-10-06 Thread Dan R. Olsen III
Does this method work if I declare my actions with annotations instead 
of declaring them in struts.xml? It looks like from the errors I get 
that it is trying to read the action definitions from the struts.xml file.


On 10/5/2009 10:00 PM, Alex Siman wrote:

Look here:
http://struts.apache.org/2.x/docs/testing-actions.html


dolsen-2 wrote:
   

I am looking for some good ways of using TestNG to test my actions. I
know I can test them like any other POJO but I would like it to include
all the interceptors if possible. Can anyone give me any good resources
on how to do this. I am using Struts 2.1.6 and have the TestNG plugin. I
am also using annotations to declare my actions.


 
   


Re: Struts2 and TestNG

2009-10-05 Thread Alex Siman

Look here:
http://struts.apache.org/2.x/docs/testing-actions.html


dolsen-2 wrote:
> 
> I am looking for some good ways of using TestNG to test my actions. I 
> know I can test them like any other POJO but I would like it to include 
> all the interceptors if possible. Can anyone give me any good resources 
> on how to do this. I am using Struts 2.1.6 and have the TestNG plugin. I 
> am also using annotations to declare my actions.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2-and-TestNG-tp25762448p25762551.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts2 and TestNG

2009-10-05 Thread Dan R. Olsen III
I am looking for some good ways of using TestNG to test my actions. I 
know I can test them like any other POJO but I would like it to include 
all the interceptors if possible. Can anyone give me any good resources 
on how to do this. I am using Struts 2.1.6 and have the TestNG plugin. I 
am also using annotations to declare my actions.