Re: Unit Testing Struts 2 Action

2009-01-17 Thread Dave Newton
Doug Pham wrote: > [...] information on how to unit test my new application actions? When you hit "reply" and change the subject this is what happens in threaded view: http://tinypic.com/view.php?pic=n5mog5&s=5 Please consider starting new threads. Dave

Re: Unit Testing Struts 2 Action

2009-01-17 Thread Robert Harrison
Here's the first step of a nice, three-part tutorial (I have no connection to author) Bob "Sure you can trust the government. Just ask any Indian" - anonymous On Sat, Jan 17, 2009 at 6:21 AM, Nils-Helge Garli Hegvik wrote: > One

Re: Unit Testing Struts 2 Action

2009-01-17 Thread Nils-Helge Garli Hegvik
One of the things I really like about Struts 2 is how easy it is to unit test actions. Using the proper mechanisms for injecting what you need, unit testing the action should be as simple as instantiating the action, set the appropriate dependencies, and then execute it. Nils-H On Sat, Jan 17, 20

Unit Testing Struts 2 Action

2009-01-17 Thread Doug Pham
Hi All,     I am putting together Struts 2, Hibernate & Sitemesh.  Where can I find information on how to unit test my new application actions? Thanks, Doug

RE: Unit testing Struts 2 systems in multiple projects

2008-09-18 Thread Peter Butler
>> The war project contains all web resources, jsps, etc. >> The core project contains all of our struts actions, >> service layer and data access layer. > IMO that's broken--the S2 actions should be part of the web > project because... that's what S2 is--the web layer. That > solves your proble

Re: Unit testing Struts 2 systems in multiple projects

2008-09-18 Thread Dave Newton
--- On Thu, 9/18/08, Peter Butler wrote: > The war project contains all web resources, jsps, etc. > The core project contains all of our struts actions, > service layer and data access layer. IMO that's broken--the S2 actions should be part of the web project because... that's what S2 is--the w

Unit testing Struts 2 systems in multiple projects

2008-09-18 Thread Peter Butler
We are doing web development using Struts 2, building using Maven. Our system is made up of two projects: a war project and a core project. The war project contains all web resources, jsps, etc. The core project contains all of our struts actions, service layer and data access layer. We split o

Re: Unit Testing Struts 2

2008-09-12 Thread Greg Lindholm
Here is a blog writeup of what I'm using. It allows you to test interceptors. http://glindholm.wordpress.com/2008/06/30/unit-testing-struts-2-actions/ Mark-413 wrote: > > Hi all: > > Does anyone have a working example of unit testing a Struts 2 app? > I've been

Re: Unit Testing Struts 2

2008-09-10 Thread Nils-Helge Garli Hegvik
r awhile know and found the following resources. >>> However, I've not been able to get any of them to work. >>> >>> >>> http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/ >>> >>> http://www.soft-gems.net/index.php?option

Re: Unit Testing Struts 2

2008-09-10 Thread Mark
en able to get any of them to work. http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing- struts-2-actions-spring-junit/ http://www.soft-gems.net/index.php? option=com_content&task=view&id=47&Itemid=33 http://struts.apache.org/2.0.8/docs/how-can-we-test-actions.html I

Re: Unit Testing Struts 2

2008-09-10 Thread Nils-Helge Garli Hegvik
the following resources. > However, I've not been able to get any of them to work. > > http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/ > http://www.soft-gems.net/index.php?option=com_content&task=view&id=47&Itemid=33 > http://st

Unit Testing Struts 2

2008-09-10 Thread Mark
Hi all: Does anyone have a working example of unit testing a Struts 2 app? I've been looking around for awhile know and found the following resources. However, I've not been able to get any of them to work. http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-

Unit Testing Struts 2 Actions

2008-06-30 Thread Greg Lindholm
Unit Testing Struts 2 Actions [1] hopefully others will find this helpful. [1] http://glindholm.wordpress.com/2008/06/30/unit-testing-struts-2-actions/

[S2][ANN] Unit Testing Struts 2 Actions wired with Spring using JUnit article

2007-06-20 Thread Ted Husted
truts provides enough flexibility in its architecture to accommodate unit testing fairly easily." More ... http://arsenalist.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/ - To unsubscribe, e-mail: [EMAIL PROT