Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-05-12 Thread SARAVANAN SIVAGURU
Sure, got you Luk. Thanks for getting back to me. Thanks and Regards, Saravanan.S From: Lukasz Lenart Sent: Monday, May 13, 2024 12:14 PM To: Struts Users Mailing List Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing CAUTION: This

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-05-12 Thread Lukasz Lenart
pon., 29 kwi 2024 o 09:15 SARAVANAN SIVAGURU napisał(a): > I would suggest to align the library version on the struts library as same > as the tomee one. As both are from Apache community we need to have in > alignment to make it work as expected. > This is a bad idea to align to a given versio

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-29 Thread SARAVANAN SIVAGURU
ccept liability for any damage you may sustain as a result of software viruses From: SARAVANAN SIVAGURU Sent: Thursday, April 25, 2024 4:43 PM To: Struts Users Mailing List Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing CAUTION: This

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-25 Thread Łukasz Lenart
the same. > > Thanks and Regards, > Saravanan.S > FTMS/NFT APP-DEV Team > > From: SARAVANAN SIVAGURU > Sent: Thursday, April 25, 2024 12:20 PM > To: Struts Users Mailing List > Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | > Testi

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-25 Thread SARAVANAN SIVAGURU
From: SARAVANAN SIVAGURU Sent: Thursday, April 25, 2024 12:20 PM To: Struts Users Mailing List Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing Hi Luk Thank you, let me check by taking the PR in my local and keep you posted. Thanks and Regards

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-24 Thread SARAVANAN SIVAGURU
Struts-6.4.0 | Testing CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. I upgraded commons-text to ver 1.12.0 https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-24 Thread Lukasz Lenart
t; Thanks and Regards, > Saravanan.S > > From: SARAVANAN SIVAGURU > Sent: Tuesday, April 23, 2024 6:45 PM > To: Struts Users Mailing List > Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | > Testing > > Hi Luk &g

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-24 Thread SARAVANAN SIVAGURU
-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing Hi Luk Please find the attachment for the 6.5 version dependency. Thanks and Regards, Saravanan.S From: SARAVANAN SIVAGURU Sent: Tuesday, April 23, 2024 2:31 PM To: Struts Users Mailing List Subject

RE: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-23 Thread Tellis, Wyatt
It turns out it was an issue with one of the dependency versions. Wyatt -Original Message- From: Lukasz Lenart Sent: Monday, April 22, 2024 9:38 PM To: Struts Users Mailing List Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-23 Thread Łukasz Lenart
Why do you use org.apache.commons:commons-text:1.12.0? With Struts 6.4 you have used org.apache.commons:commons-text:1.11.0 and the same version should be used with Struts 6.5 Regards Lukasz - To unsubscribe, e-mail: user-unsubsc

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-23 Thread SARAVANAN SIVAGURU
Sure, I will do Thanks and Regards, Saravanan.S From: Lukasz Lenart Sent: Tuesday, April 23, 2024 2:29 PM To: Struts Users Mailing List Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing CAUTION: This email originated from outside

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-23 Thread Lukasz Lenart
wt., 23 kwi 2024 o 10:54 SARAVANAN SIVAGURU napisał(a): > Hi Luk > > Somehow I was unable to share the report files as a attachment in html > format. Am attaching the text file, output of the gradle dependencies > command for the my application. > This is for Struts 6.4.0, but could you use Stru

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-22 Thread Lukasz Lenart
pon., 22 kwi 2024 o 22:40 Tellis, Wyatt napisał(a): > We’ve run into this issue as well. Using the workaround of specifying the > location via: > > > > org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG > /WEB-INF/tiles.xml > > > doesn’t work. You can specify all the

RE: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-22 Thread Tellis, Wyatt
Mailing List Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing Also the very recent change which got merged with 7. 0. 0-M3 SNAPSHOT version had break the code and gave the same error as I mentioned below. Thanks and Regards, Saravanan. S FTMS/NFT APP-DEV Team Mob

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-22 Thread Lukasz Lenart
Could you run "gradle dependencies" and post the outcome?

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-22 Thread SARAVANAN SIVAGURU
tiles.xml fails in Struts-6.4.0 | Testing Hi Luk I have tested by cloning the PR and building in my local and facing the same issue as below mentioned. When I tried with 6.4.0 version also am facing the same issue. Exception javax.servlet.ServletException: Filter execution threw an exception

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-22 Thread SARAVANAN SIVAGURU
ult of software viruses From: SARAVANAN SIVAGURU Sent: Monday, April 22, 2024 3:06 PM To: Struts Users Mailing List Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing Got it, I will test the PR specifically by cloning in local. An

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-22 Thread SARAVANAN SIVAGURU
Subject: Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. This fix wasn't integrated with the SNA

Re: WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-22 Thread Lukasz Lenart
This fix wasn't integrated with the SNAPSHOT version yet - it exists only in the PR, if you want to test it you must clone the PR locally and build it. pon., 22 kwi 2024 o 11:08 SARAVANAN SIVAGURU napisał(a): > > Hi Luk > > Faced any issues during the testing of the fix with 6.5

WW-5419 - Autoloading of tiles.xml fails in Struts-6.4.0 | Testing

2024-04-22 Thread SARAVANAN SIVAGURU
Hi Luk Faced any issues during the testing of the fix with 6.5-SNAPSHOT version like below, java.lang.NoSuchMethodError: 'org.apache.commons.lang3.Range org.apache.commons.lang3.Range.of(java.lang.Comparable, java.lang.Compa

Re: Black Box Tesing v White Box Testing

2019-12-05 Thread Zahid Rahman
Hi, > "None of us are resistant to new ideas or ways of looking at things" Happy LEARNING https://www.robotshop.com/uk/37-modules-sensor-kit-arduino.html https://www.raspberrypi.org/ https://beagleboard.org/bone On Wed, 4 Dec 2019 at 14:11, Dave Newton wrote: > On Wed, Dec 4, 2019 at 07

Re: Black Box Tesing v White Box Testing

2019-12-05 Thread Zahid Rahman
On one occasion I had to make use of external procedure (dynamic link library (DLL)) on a database. The Oracle documents showed,Oracle database provides two ways of interacting with host operating system. PL/SQL which can create and write files to disk or a developer can create dll (in C or other

Re: Black Box Tesing v White Box Testing

2019-12-04 Thread Dave Newton
On Wed, Dec 4, 2019 at 07:56 Zahid Rahman wrote: > The space and defence don't share what they are doing. So I don't think > yours is reasonable statement that you know what is happening in the > aerospace and defence industry. Hm. I don't think your assumption that I haven't done defense c

Re: Black Box Tesing v White Box Testing

2019-12-04 Thread Zahid Rahman
The space and defence don't share what they are doing. So I don't think yours is reasonable statement that you know what is happening in the aerospace and defence industry. Anyway you jumped to a conclusion of reverse engineering when I was referring to the benefit of traceability when using

Re: Black Box Tesing v White Box Testing

2019-12-04 Thread Dave Newton
On Wed, Dec 4, 2019 at 07:37 Zahid Rahman wrote: > I'm not talking of reverse engineering, my point is traceability. Sure you are--you specifically brought up decompiling, which is the first step of reverse-engineering. And in a jar with no debug info, or obfuscation, it's not the last step. (

Re: Black Box Tesing v White Box Testing

2019-12-04 Thread Dave Newton
On Wed, Dec 4, 2019 at 06:36 Zahid Rahman wrote: > You're right except in a bespoke hardware , software environment they tend > to use 68k Motorola chip to eliminate internal unknown risks. I haven't worked on a 68k product for twenty years--I'd be *very* surprised if anyone had designed one in

Re: Black Box Tesing v White Box Testing

2019-12-04 Thread Zahid Rahman
I'm not talking of reverse engineering, my point is traceability. If you can decompile code then if there is a problem then there is a chance that you can trace it. With .exe or dll you cannot trace the problem. On Wed, 4 Dec 2019, 11:06 Dave Newton, wrote: > On Wed, Dec 4, 2019 at 01:16 Zah

Re: Black Box Tesing v White Box Testing

2019-12-04 Thread Zahid Rahman
You're right except in a bespoke hardware , software environment they tend to use 68k Motorola chip to eliminate internal unknown risks. On Wed, 4 Dec 2019, 11:06 Dave Newton, wrote: > On Wed, Dec 4, 2019 at 01:16 Zahid Rahman wrote: > > > .exe and DLLs (C,C++) have unknown internals (AF

Re: Black Box Tesing v White Box Testing

2019-12-04 Thread Zahid Rahman
Thanks for a most respectful reply. I will give details of an incident later. On Wed, 4 Dec 2019, 11:06 Dave Newton, wrote: > On Wed, Dec 4, 2019 at 01:16 Zahid Rahman wrote: > > > .exe and DLLs (C,C++) have unknown internals (AFAIK DLLs can't be > > decompiled). > > > They're just code like

Re: Black Box Tesing v White Box Testing

2019-12-04 Thread Dave Newton
On Wed, Dec 4, 2019 at 01:16 Zahid Rahman wrote: > .exe and DLLs (C,C++) have unknown internals (AFAIK DLLs can't be > decompiled). They're just code like anything else. And I don’t quite understand why there’s a distinction made here between reverse engineering an exe and a jar. I also chos

Black Box Tesing v White Box Testing

2019-12-03 Thread Zahid Rahman
So at the beginning of a project you have made a decision that you will be doing black box testing and using unknown internals. In a best practice environment finding one self doing black box testing is avoided altogether. I also chose Java because one can decompile classes , so any unknown behaviou

Unable to Mock behavior using Mockito for testing Struts2 action class method

2015-04-13 Thread swathi yakkali
Hi, I am writing a test case extending from strutsspringtestcase and invoking the actions as below: ActionProxy proxy = getActionProxy("/login"); LoginAction action = (LoginAction) proxy.getAction(); String result = proxy.execute(); Also, I am creating mocked objects using mockito as below: @Moc

RE: Issues in Struts2 unit testing

2014-06-13 Thread Martin Gainty
> Date: Fri, 13 Jun 2014 19:01:31 +0530 > Subject: Re: Issues in Struts2 unit testing > From: akrajmscjavaquest...@gmail.com > To: user@struts.apache.org > > Hi Paul, > > I placed the break points in struts code. But the control is not redirected > to strut

Re: Issues in Struts2 unit testing

2014-06-13 Thread Paul Benedict
a","no-cache"); > > response.setHeader("Cache-Control","no-store"); > > response.setHeader("Expires","0"); > > response.setDateHeader("Expires",-1); > > response.setCharacterEncoding

Re: Issues in Struts2 unit testing

2014-06-13 Thread Krishnaraj A
t;); > > > } > > > } > > > > > > else { > > > return "login"; > > > > > > } > > > response.setHeader("Pragma","no-cache"); > > > response.s

Re: Issues in Struts2 unit testing

2014-06-13 Thread Paul Benedict
eader("Pragma","no-cache"); > > response.setHeader("Cache-Control","no-store"); > > response.setHeader("Expires","0"); > > response.setDateHeader("Expires",-1); > > response

Re: Issues in Struts2 unit testing

2014-06-13 Thread Krishnaraj A
;Expires",-1); > response.setCharacterEncoding("UTF-8"); > return invocation.invoke(); > > } > } > > I debug the application by placing the break point. When the control go to > " return invocation.invoke();" it throws error. >

Re: Issues in Struts2 unit testing

2014-06-12 Thread Krishnaraj A
1:11 AM, Krishnaraj A < > > akrajmscjavaquest...@gmail.com> wrote: > > > > > Hi Team, > > > > > > Iam new to using Struts2 unit testing. Iam using the Struts 2 JUnit > > plugin > > > <http://struts.apache.org/2.3.1.2

Re: Issues in Struts2 unit testing

2014-06-12 Thread Krishnaraj A
bug the application by placing the break point. When the control go to " return invocation.invoke();" it throws error. java.lang. IllegalStateException: Action has already executed Thanks, Krishnaraj On Thu, Jun 12, 2014 at 8:45 PM, Dave Newton wrote: > Without knowing what&

Re: Issues in Struts2 unit testing

2014-06-12 Thread Paul Benedict
impossible to help. > > Dave > > > On Thu, Jun 12, 2014 at 11:11 AM, Krishnaraj A < > akrajmscjavaquest...@gmail.com> wrote: > > > Hi Team, > > > > Iam new to using Struts2 unit testing. Iam using the Struts 2 JUnit > plugin > > <http://struts.

Re: Issues in Struts2 unit testing

2014-06-12 Thread Dave Newton
Without knowing what's in your interceptor stack it's impossible to help. Dave On Thu, Jun 12, 2014 at 11:11 AM, Krishnaraj A < akrajmscjavaquest...@gmail.com> wrote: > Hi Team, > > Iam new to using Struts2 unit testing. Iam using the Struts 2 JUnit plugin > <h

Issues in Struts2 unit testing

2014-06-12 Thread Krishnaraj A
Hi Team, Iam new to using Struts2 unit testing. Iam using the Struts 2 JUnit plugin <http://struts.apache.org/2.3.1.2/docs/junit-plugin.html>. The normal actions which is working fine. But I have issue when I am testing the action which has interceptor. /MainAdm

Re: Struts 2 Testing Actions

2013-11-28 Thread Damian Blazejewski
gt; >> > I have managed to sort it out. My project has two maven modules and > >> one > >> >> > parent pom common for those modules. > >> >> > Tests are located in on of the submodules. > >> >> > As turns out, when I add servlet-api a

Re: Struts 2 Testing Actions

2013-11-28 Thread Lukasz Lenart
>> >> > I have managed to sort it out. My project has two maven modules and >> one >> >> > parent pom common for those modules. >> >> > Tests are located in on of the submodules. >> >> > As turns out, when I add servlet-api and jsp-api d

Re: Struts 2 Testing Actions

2013-11-27 Thread Damian Blazejewski
present. > >> > However, when I move those two dependencies to the module's pom which > >> tests > >> > are located in, error disappears. > >> > So that problem is solved. > >> > Unfortunately, there is another issue. I have almost given u

Re: Struts 2 Testing Actions

2013-11-27 Thread Lukasz Lenart
ated in, error disappears. >> > So that problem is solved. >> > Unfortunately, there is another issue. I have almost given up but my >> desire >> > to start automatically testing Struts actions is stronger so I still >> > struggle :) >> > I have S

Re: Struts 2 Testing Actions

2013-11-27 Thread Damian Blazejewski
the module's pom which > tests > > are located in, error disappears. > > So that problem is solved. > > Unfortunately, there is another issue. I have almost given up but my > desire > > to start automatically testing Struts actions is stronger so I still > &g

Re: Struts 2 Testing Actions

2013-11-27 Thread Lukasz Lenart
rror is present. > However, when I move those two dependencies to the module's pom which tests > are located in, error disappears. > So that problem is solved. > Unfortunately, there is another issue. I have almost given up but my desire > to start automatically testing St

Re: Struts 2 Testing Actions

2013-11-26 Thread Damian Blazejewski
to the module's pom which tests are located in, error disappears. So that problem is solved. Unfortunately, there is another issue. I have almost given up but my desire to start automatically testing Struts actions is stronger so I still struggle :) I have Spring dependencies in the actions i

Re: Struts 2 Testing Actions

2013-11-25 Thread Lukasz Lenart
What Struts version do you use? And can you post source of the test? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/11/24 Damian Blazejewski : > Hello, > > I have a problem executing Struts 2 action test case. > I get the following error: > > > *Absent Code attribute in metho

Struts 2 Testing Actions

2013-11-24 Thread Damian Blazejewski
Hello, I have a problem executing Struts 2 action test case. I get the following error: *Absent Code attribute in method that is not native or abstract in class file javax/servlet/jsp/PageContext * I have no clue what can be wrong. Thank you in advance for your help. Here are my dependencies:

Testing with xslt result type + spring

2013-06-04 Thread Mael Le Guével
= ServletActionContext.getServletContext().getResource(path); ServletActionContext.getServletContext() returns a spring MockServletContext which does not seem to be able to retrieve a resource relative to the context path. Has anyone succeeded in testing xslt result type in this kind of situation

Re: Current status in testing with struts2, spring3 +junit 4?

2012-04-06 Thread Łukasz Lenart
n do to give something > back to the community). > > It is how-ever loosely based on this: > http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/ > <http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring

Re: Current status in testing with struts2, spring3 +junit 4?

2012-04-05 Thread Mounir Benzid
the least I can do to give something back to the community). It is how-ever loosely based on this: http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/ <http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/> an

Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-22 Thread Łukasz Lenart
2012/3/22 Mounir Benzid : > :-)   Ok, but actually this isn't my code and not even my blog. I just > stumbled over the solution while googling at 2 am . > So there is not connection between me and [1]. Sorry for the > misunderstanding. > > But I can contact the author and see if s/he is willing to

Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-22 Thread Mounir Benzid
Am 22.03.2012 16:05, schrieb Łukasz Lenart: 2012/3/22 Mounir Benzid: You mean some code demonstrating how I did my tests using [1] ? An example would be nice, but I'm talking about your test class from the blog entry. It must be donated to ASF if I want to use it and the simplest way is to att

Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-22 Thread Łukasz Lenart
2012/3/22 Mounir Benzid : > You mean some code demonstrating how I did my tests using [1]  ? An example would be nice, but I'm talking about your test class from the blog entry. It must be donated to ASF if I want to use it and the simplest way is to attach it as a patch to the issue. Regards --

Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-22 Thread Mounir Benzid
Am 20.03.2012 11:26, schrieb Łukasz Lenart: Mounir could you prepare a patch with your test case class from here [1] and attach it to https://issues.apache.org/jira/browse/WW-3778 with granting license to ASF ? I'd like to include your code in S2 [1] http://www.zapjava.com/tutorials/spring-strut

Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-21 Thread Christian Grobmeier
2012/3/20 Łukasz Lenart : > As I see there is a small mess with the test classes. Struts 2 has > three StrutsTestCase classes, in core in junit plugin and in testng > plugin. It would be nice to clean them up. Remove StrutsTestCase from > core and two other StrutsTestCase classes rename accordingly

Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-20 Thread Łukasz Lenart
Mounir could you prepare a patch with your test case class from here [1] and attach it to https://issues.apache.org/jira/browse/WW-3778 with granting license to ASF ? I'd like to include your code in S2 [1] http://www.zapjava.com/tutorials/spring-struts2-junit4-annotations/ Regards -- Łukasz ht

Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-20 Thread Łukasz Lenart
As I see there is a small mess with the test classes. Struts 2 has three StrutsTestCase classes, in core in junit plugin and in testng plugin. It would be nice to clean them up. Remove StrutsTestCase from core and two other StrutsTestCase classes rename accordingly, Also adding support for the Con

Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-20 Thread Mounir Benzid
Am 19.03.2012 20:54, schrieb Łukasz Lenart: If you'll follow the last comments, you'll find another approach. Always you can prepare your solution and register an issue to integrate your solution with S2 Regards I found this blog post. So far this solves the problems I had with the old bases

Re: Current status in testing with struts2, spring3 +junit 4?

2012-03-19 Thread Łukasz Lenart
itura http://confitura.pl/ 2012/3/19 Mounir Benzid : > > > A co-worker of mine discovered the below test helper class that we are > currently employing for some very basic action testing stuff > https://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring

Current status in testing with struts2, spring3 +junit 4?

2012-03-19 Thread Mounir Benzid
A co-worker of mine discovered the below test helper class that we are currently employing for some very basic action testing stuff https://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/ Since this is from 2007 I'm wondering if this is still the

Re: Fuzz testing and ognl.MethodFailedException - Freemarker results can't use integer types in compare operations?

2012-03-15 Thread struts . rgm
Replying to my own post after reading some source code. If you have additional advice to add, I'd love to hear it. I have now learned about the ConversionErrorInterceptor: http://struts.apache.org/2.0.14/docs/conversion-error-interceptor.html http://struts.apache.org/2.3.1.2/xwo

Fuzz testing and ognl.MethodFailedException - Freemarker results can't use integer types in compare operations?

2012-03-15 Thread struts . rgm
I've got accessor/mutators on my action for an integer ID parameter like this: NewUserAction { int _userGroupId = -1; // execute, validate, other methods setUserGroupId( int id ) { this._userGroupId = id; } getUserGroupId() { return _userGroupId; } } But when I

Re: Testing with StrutsTestCase in a Tiles application - NullPointerException

2012-01-30 Thread Miguel Almeida
For future reference, I found the answer in http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/ Basically, you need to initialize the tiles listener. As I already used setupBeforeInitDispatcher to set the applicationContext attribute, I added the code

Testing with StrutsTestCase in a Tiles application - NullPointerException

2012-01-27 Thread Miguel Almeida
Hi there, I trying to test an application with the help of StrutsTestCase (a class that extends from StrutsSpringTestCase, to be more precise). StrutsTestCase (which is in the struts junit plugin) involves proxied actions to make tests more light. I have used the same method in another applicatio

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
ction > - > file:/Users/bphillips/eclipse_workspaces/kucard/Struts2HelloWorldPortlet/target/classes/struts.xml:11:74 >        at > com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:224) > > I get the same error if the project is using the Struts Spring plugin or >

Problem With Struts 2.3.1 and Testing Struts Portlet

2011-12-27 Thread bphill...@ku.edu
a:224) I get the same error if the project is using the Struts Spring plugin or not. I think the error is in the Struts unit testing framework as I can still run the project successfully. For example after updating the struts.version in pom.xml enter this command in the terminal window: mv

Re: unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-11-03 Thread vbalrog
work perfectly with junit. With the debugging mode I found that not any of my actions mapped with annotations are found by the xwork DefaultConfiguration and ConventionUnknownHandler classes. -- View this message in context: http://struts.1045723.n5.nabble.com/unit-testing-with-junit-spring-st

Re: unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-10-20 Thread jaredtims
-- View this message in context: http://struts.1045723.n5.nabble.com/unit-testing-with-junit-spring-struts2-NullPointerException-with-HttpServletRequest-tp4394036p4913525.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-10-15 Thread dan.zheng
run tests against my actions. > Anybody know any work arounds? > > thanks > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/unit-testing-with-junit-spring-struts2-NullPointerException-with-HttpServletRequest-tp4394036p4903696

Re: unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-10-14 Thread jaredtims
s? thanks -- View this message in context: http://struts.1045723.n5.nabble.com/unit-testing-with-junit-spring-struts2-NullPointerException-with-HttpServletRequest-tp4394036p4903696.html Sent from the Struts - User mailing list archive at

[ANN] struts2-junit utility classes for testing with JUnit 4

2011-08-03 Thread Gabriel Belingueres
Hi, I'd like to introduce this simple library, which is based on the StrutsJUnit4TestCase class that comes with the Struts 2 distribution. Usage This library is primarily intended for integration tests, meaning you can test your actions and interceptors against a complete struts interceptor stac

Re: Problem with configured action method names and Testing Framework - Action Testing with configured method names is broken in struts-2.2.3

2011-06-17 Thread UV
the xml configuration should have nothing to do with it, as the reflection code only seems to be able to find the execute() method which is part of the action interface. I have been deep in this with the debugger and I am actually pretty sure by now that this is a defect in the testing framework

Re: Problem with configured action method names and Testing Framework

2011-06-16 Thread Lukasz Lenart
2011/6/17 UV : > When I try to test an action with a method="actionMethod" attribute > configured in a  StrutsTestCase > the AnnotationValidationInterceptor fails in getActionMethod#75 cause it > cannot find the method Try to name your method actionMethod instead of getActionMethod and of return t

Re: Problem with configured action method names and Testing Framework ===> StrutsTestCase cannot handle actions not calling execute()

2011-06-16 Thread UV
Hi, the setup is unit testing with maven + spring + struts using StrutsSpringTestCase super class (which is an extended org.apache.struts2.StrutsTestCase with access to spring config). So this is working well with actions not having the methodname configured. Whenever I do configure such a

Re: Problem with configured action method names and Testing Framework

2011-06-16 Thread Maurizio Cucchiara
; configured in a StrutsTestCase > the AnnotationValidationInterceptor fails in getActionMethod#75 cause it > cannot find the method > using the configured name on the proxy used in the testing framework. > > My only workaround so far was using execute() method on actions only and >

Problem with configured action method names and Testing Framework

2011-06-16 Thread UV
Hi, When I try to test an action with a method="actionMethod" attribute configured in a StrutsTestCase the AnnotationValidationInterceptor fails in getActionMethod#75 cause it cannot find the method using the configured name on the proxy used in the testing framework. My only wor

Re: unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-05-13 Thread Jake Vang
struts v2.1.8.1 + spring 3.0 + junit 4.0. it should be > noted that i am using convention plugin for spring. > > my action class extends ActionSupport and implements > ServletRequestAware and ServletResponseAware. the method i am testing > inside my action class never returns a stri

unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-05-13 Thread Jake Vang
hi, i am using struts v2.1.8.1 + spring 3.0 + junit 4.0. it should be noted that i am using convention plugin for spring. my action class extends ActionSupport and implements ServletRequestAware and ServletResponseAware. the method i am testing inside my action class never returns a string

Re: Struts 2 Testing - odd behaviour

2010-11-29 Thread Maurizio Cucchiara
solution renders as a button anyway in IE6, IE7, IE8, Firefox and Chrome, > does anyone know what the point of is? (It also > might be worth a mention in the tag reference as well) > > > Regards > -- > View this message in context: > http://old.nabble.com/Struts-2-Testing-

Re: Struts 2 Testing - odd behaviour

2010-11-29 Thread RogerV
ng itself on IE6 as well. Since your solution renders as a button anyway in IE6, IE7, IE8, Firefox and Chrome, does anyone know what the point of is? (It also might be worth a mention in the tag reference as well) Regards -- View this message in context: http://old.nabble.com/Struts-2-Testing---od

Re: Struts 2 Testing - odd behaviour

2010-11-29 Thread Maurizio Cucchiara
 Freelander 2 >    Range Rover 2004.5 to 2005 >    Range Rover 2006 >    Range Rover 2007 to 2009 >    Range Rover 2010 on >    Range Rover Sport 2005 to 2009 >    Range Rover Sport 2010 on > > > > > > Next > > > value="Su

Re: Struts 2 Testing - odd behaviour

2010-11-28 Thread RogerV
. -- View this message in context: http://old.nabble.com/Struts-2-Testing---odd-behaviour-tp30308915p30328168.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@

Re: Struts 2 Testing - odd behaviour

2010-11-26 Thread Dave Newton
On Fri, Nov 26, 2010 at 12:09 PM, Ashlon Hill wrote: > so there is a typo in value="{platformName}" ? > If not in functionality (I'm not sure what that would do) then in clarity: either use an OGNL escape, or don't, but don't go 50%. Dave

Re: Struts 2 Testing - odd behaviour

2010-11-26 Thread Ashlon Hill
tentType="text/html; charset=ISO-8859-1" > > >pageEncoding="ISO-8859-1"%> > > > <%@ taglib prefix="s" uri="/struts-tags" %> > > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > >

Re: Struts 2 Testing - odd behaviour

2010-11-26 Thread Dave Newton
> > /> > > Edit Ecu Text > > > > > > Select Platform > > > > > > listKey="id" > > listValue="platformName" > >value="{platformName}"/> > > > > > > > > > >

Re: Struts 2 Testing - odd behaviour

2010-11-26 Thread Maurizio Cucchiara
-strict.dtd";> > > > > Edit Ecu Text > > > Select Platform > > > listValue="platformName" >                value="{platformName}"/> > > > > > > > > -- > View this message in context: > http://old.nabble.com/S

Struts 2 Testing - odd behaviour

2010-11-26 Thread RogerV
ng="ISO-8859-1"%> <%@ taglib prefix="s" uri="/struts-tags" %> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> Edit Ecu Text Select Platform -- View this message in context: http://old.nabble.com/Struts-2-Testing---odd-behavio

convention plugin and unit testing

2010-10-28 Thread Aaron Brown
I'm using Struts 2.1.8 with the convention plugin to configure struts2 with annotations instead of xml files. When I write unit tests for actions using StrutsSpringTestCase or StrutsTestCase, it appears that the convention plugin isn't scanning my java packages for action classes when the rest of t

Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Lukasz Lenart
2010/8/18 Stephen Turner : > I'm looking in struts2-junit-plugin-2.2.1.jar that came as part of > struts2-2.2.1-all.zip and I see only these classes in the org/apache/struts2 > folder: > > StrutsTestCase.class > StrutsTestCase$1.class > StrutsSpringTestCase.class > > What am I missing? This class

Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Stephen Turner
On Wed, 18 Aug 2010 16:22:37 -0400, Lukasz Lenart wrote: 2010/8/18 Stephen Turner : Unit tests for interceptors in Struts 2.2.1 In TokenInterceptorTest I see a reference to org.apache.struts2.TestConfigurationProvider, but I can't find this class in a jar file. I do see the source code t

Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Lukasz Lenart
2010/8/18 Stephen Turner : > Unit tests for interceptors in Struts 2.2.1 > > In TokenInterceptorTest I see a reference to > org.apache.struts2.TestConfigurationProvider, but I can't find this class in > a jar file. I do see the source code though. > > Which jar should I be using for TestConfigurati

Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Stephen Turner
Unit tests for interceptors in Struts 2.2.1 In TokenInterceptorTest I see a reference to org.apache.struts2.TestConfigurationProvider, but I can't find this class in a jar file. I do see the source code though. Which jar should I be using for TestConfigurationProvider? Thanks, Steve -

Re: Unit Testing in Struts 2.1.6

2010-08-03 Thread Cimballi
You can try this : http://cimballisblog.blogspot.com/2009/09/unit-testing-struts2-actions-with.html Cimballi On Tue, Aug 3, 2010 at 3:01 PM, akash uppal wrote: > > > > Dan - Is your Struts 2 application using Spring?  If it isn't you shouldn't > need to use the StrutsS

RE: Unit Testing in Struts 2.1.6

2010-08-03 Thread akash uppal
ugin much with a Struts 2 - Spring application. Bruce dolsen wrote: > > When I follow the web site > http://www.brucephillips.name/blog/index.cfm/2009/9/5/Unit-Testing-A-Struts-2-Action-Class--Struts-2-JUnit-Plugin > I get the following error when trying to run my test case. I then

RE: Unit Testing in Struts 2.1.6

2010-08-03 Thread akash uppal
y you would get the error you did). If you are using Spring then I don't have any good advice for you as I've not used the JUnit plugin much with a Struts 2 - Spring application. Bruce dolsen wrote: > > When I follow the web site > http://www.brucephillips.name/blog/index.cf

  1   2   3   4   5   6   >