Re: Problem With Struts 2.3.1 and Testing Struts Portlet

2011-12-30 Thread bphill...@ku.edu
JIRA issue created: https://issues.apache.org/jira/browse/WW-3733 Thank you for the assistance. Bruce -- View this message in context: http://struts.1045723.n5.nabble.com/Problem-With-Struts-2-3-1-and-Testing-Struts-Portlet-tp5103393p5110605.html Sent from the Struts - User mailing list

Re: Problem With Struts 2.3.1 and Testing Struts Portlet

2011-12-28 Thread Łukasz Lenart
arted Jetty Server go to this URL in your > web browser:  http://localhost:8080/struts2helloworldportlet/pluto/index.jsp > and you should see the example portlet. > > Bruce > > > > > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/Probl

Problem With Struts 2.3.1 and Testing Struts Portlet

2011-12-27 Thread bphill...@ku.edu
n jetty:run When you see the message [INFO] Started Jetty Server go to this URL in your web browser: http://localhost:8080/struts2helloworldportlet/pluto/index.jsp and you should see the example portlet. Bruce -- View this message in context: http://struts.1045723.n5.nabble.com/Problem-W

Testing Struts Restful Web Services

2009-10-22 Thread struts-restful
is message in context: http://www.nabble.com/Testing-Struts-Restful-Web-Services-tp26008963p26008963.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apac

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/

RE: Advice on unit testing struts action classes

2007-06-22 Thread Joe Yuen
_ From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Fri 6/22/2007 11:11 AM To: Struts Users Mailing List Subject: Re: Advice on unit testing struts action classes -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: > Can anyone give me any advic

Re: Advice on unit testing struts action classes

2007-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: > Can anyone give me any advice on a good tool to use for unit testing > struts action classes. I am currently using struts 1.2.9 with spring > 1.2.9 and hibernate. I have looked into StrutsTestCase but cannot get it >

RE: Advice on unit testing struts action classes

2007-06-22 Thread Joe Yuen
I understand now. I apologize. I'll post a new message. Thanks for pointing this out. From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Fri 6/22/2007 9:25 AM To: Struts Users Mailing List Subject: Re: Advice on unit testing struts action cl

Re: Advice on unit testing struts action classes

2007-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: > Huh??? What are you talking about? What topic being hijacked??? I am > asking a question. Do you mean that this subject line has already > been used in another thread??? You replied to a message in the "AutoCompleter doesn't w

RE: Advice on unit testing struts action classes

2007-06-22 Thread Joe Yuen
Users Mailing List Subject: Re: Advice on unit testing struts action classes -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Do not hijack topics. Please post a new message to user@struts.apache.org to ask a question. - -chris Joe Yuen wrote: > > Can anyone give me any advice on a goo

Advice on unit testing struts action classes

2007-06-22 Thread Joe Yuen
Can anyone give me any advice on a good tool to use for unit testing struts action classes. I am currently using struts 1.2.9 with spring 1.2.9 and hibernate. I have looked into StrutsTestCase but cannot get it to work. I get the following error: test: [junit] Testsuite

Re: Advice on unit testing struts action classes

2007-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Do not hijack topics. Please post a new message to user@struts.apache.org to ask a question. - -chris Joe Yuen wrote: > > Can anyone give me any advice on a good tool to use for unit testing struts > action classes. I am curren

RE: Advice on unit testing struts action classes

2007-06-22 Thread Joe Yuen
Can anyone give me any advice on a good tool to use for unit testing struts action classes. I am currently using struts 1.2.9 with spring 1.2.9 and hibernate. I have looked into StrutsTestCase but cannot get it to work. I get the following error: test: [junit] Testsuite

[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

Testing Struts

2006-12-20 Thread Pierre Goupil
Hello, listers ! I'm getting used to Struts, now. And I must admit it's really a great tool ! I'm going to give Spring a try, but I don't think I'll drop Struts for that. It seems that they both integrate seamlessly. But there's still one thing I really can't figure out : how do you test a Stru

Re: Testing Struts

2006-10-30 Thread Ted Husted
First, in the scope of Struts 2, something like STC isn't needed, since Actions can be tested without mocks. For Struts 1, I used Struts TestCase for some time, and it was quite good, but it's not a replacement for business logic unit tests or click-through UI tests. If you are testing the back-e

Testing Struts

2006-10-30 Thread Jens Bartelheimer
Hi, I am looking for best practices and tools in order to test a struts application, especially unit tests. In the www i have found tools like HttpUnit, Cactus, StrutsTestCase, Canoo WebTest, But i am not sure which of them is the best way and if all the projects are maintained nowadays. Can

Re: unit testing struts actions

2006-10-27 Thread Ted Husted
On 10/26/06, Asthana, Rahul <[EMAIL PROTECTED]> wrote: We are thinking of designing a unit test plan for our struts based application. We have found in past that Junits for struts action are cumbersome to write and difficult to maintain.Any other suggestions? Winrunner? First, push as much bu

Re: unit testing struts actions

2006-10-26 Thread Volker Krebs
Asthana, Rahul schrieb: We are thinking of designing a unit test plan for our struts based application. We have found in past that Junits for struts action are cumbersome to write and difficult to maintain.Any other suggestions? Winrunner? Try: http://strutstestcase.sourceforge.net/

Re: unit testing struts actions

2006-10-26 Thread Chris Pratt
You might want to check out jWebUnit (http://jwebunit.sourceforge.net/). (*Chris*) On 10/26/06, Asthana, Rahul <[EMAIL PROTECTED]> wrote: We are thinking of designing a unit test plan for our struts based application. We have found in past that Junits for struts action are cumbersome to write

unit testing struts actions

2006-10-26 Thread Asthana, Rahul
We are thinking of designing a unit test plan for our struts based application. We have found in past that Junits for struts action are cumbersome to write and difficult to maintain.Any other suggestions? Winrunner?

Re: testing struts

2005-10-21 Thread Adam Hardy
It looks like the home page for mockstrutstestcase is your best starting point. http://strutstestcase.sourceforge.net/ hem hem on 20/10/05 23:49, wrote: Hi Adam, thanks for your reply, i my struts(version 1.2) web app,i am using tiles, action form are submitted through tiles(jsp)templates. i

Re: testing struts

2005-10-20 Thread hem hem
Hi Adam, thanks for your reply, i my struts(version 1.2) web app,i am using tiles, action form are submitted through tiles(jsp)templates. i am having a helper class which copies property values from form bean to model object. i call the methods in this helper class from my action class and put som

Re: testing struts

2005-10-20 Thread Adam Hardy
hem hem on 20/10/05 22:57, wrote: i am using struts jar 1.2 in my web app. i want to test my struts action classes and jsps using Junit are there any nice tutorials on this. i want to use MockStrutsTestcase in my junit tests What precisely do you want to test? There are many different junit c

testing struts

2005-10-20 Thread hem hem
hi all, i am using struts jar 1.2 in my web app. i want to test my struts action classes and jsps using Junit are there any nice tutorials on this. i want to use MockStrutsTestcase in my junit tests your suggestions are very much appreciated regards and thanks in advance ---

Re: Testing Struts Applicaton

2005-09-23 Thread Laurie Harper
us in it -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Laurie Harper Sent: Friday, September 23, 2005 1:05 AM To: user@struts.apache.org Subject: Re: Testing Struts Applicaton rahul wrote: Can anyone post some sample CactusStrutsTestCase code That's a bit vagu

RE: Testing Struts Applicaton

2005-09-22 Thread rahul
- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Laurie Harper > Sent: Friday, September 23, 2005 1:05 AM > To: user@struts.apache.org > Subject: Re: Testing Struts Applicaton > > > rahul wrote: > > Can anyone post some sample CactusStrutsTestCase code > > T

Re: Testing Struts Applicaton

2005-09-22 Thread Laurie Harper
rahul wrote: Can anyone post some sample CactusStrutsTestCase code That's a bit vague; what are you trying to test? One place you could look is the Cactus test suite for the taglibs subproject in the Struts source (grab a current source distribution or checkout from subversion, and look in t

Testing Struts Applicaton

2005-09-22 Thread rahul
Hi All, Can anyone post some sample CactusStrutsTestCase code --RahulJoshi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Testing Struts With JUnit

2005-08-19 Thread Mitchell, Steven C
Luiz, Are you aware that there is an extension of Junit made for testing Struts? http://strutstestcase.sourceforge.net/ -Original Message- From: Luiz Godoy [mailto:[EMAIL PROTECTED] Sent: Thursday, August 18, 2005 3:22 PM To: Struts Users Mailing List Subject: Testing Struts With JUnit

Testing Struts With JUnit

2005-08-18 Thread Luiz Godoy
I´m trying to test the action below : public class FamiliaDNCAction extends BasicAction { public ActionForward unspecified(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws BusinessException { Set msgs = new HashSet();

[perhaps OT] Testing Struts App with JNDI Datasouce

2005-03-09 Thread Manfred Wolff
Hi. My favorite Configuration is Struts, HiveMind and Hibernate together in a servlet Container (Tomcat 5.0). I have configures a datasource in the Tomcat container and have access to the datasource via hibernate (JNDI Lookup). Is there a solution to do this in a testcase without running tomcat

Re: testing struts and locale

2004-07-22 Thread Alex
Is this something no one has ever ventured to try? On Wed, 21 Jul 2004, Alex wrote: > Date: Wed, 21 Jul 2004 09:36:05 -0400 (EDT) > From: Alex <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PRO

testing struts and locale

2004-07-21 Thread Alex
Greetings, I've been using strutstest http://strutstestcase.sourceforge.net/ which works fine. I can even verify that the proper error messages are being sent back: verifyActionErrors(new String[] {"error.no.id.provided"}); Question i have is that, is there a way to simulate a different locale,