dInjectorsForMembers(ContainerImpl.java:141)
> ... 34 more
>
>
>
>
>
> Greg Lindholm wrote:
>> You can take a look at this:
>>
>> http://glindholm.wordpress.com/2008/06/30/unit-testing-struts-2-actions/
>>
>> I've used it to unit test
Hi Greg / all,
I've gone back to Greg's example and I'm getting the stack trace below.
From what I've read, it is because I'll need to define an object factory
for my test to run. My application is using a combination of Struts 2
and Spring 2. I've created a struts-test.xml that bypasses so
I found an article on how to statically load Tiles to get past the
container issue. I found a web site that explained how to initialize
the tiles container. See below:
protected void setUp() throws Exception {
if (applicationContext == null) {
// this is the first time s
Thanks for the tip Greg. I quickly went through the debugger based on
the example here:
http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/
and I learned two things.
1. execute() does call getSettings(). All that CRUD nonsense was me
not being su
ge in context:
http://www.nabble.com/Writing-a-unit-test-that-goes-through-result-types-tp22166625p22186937.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apa
I had tried using proxy.execute(), which will use Struts. Maybe that's
where I'm a bit lost. I don't implement execute() because of my CRUD
approach.
Can someone point me to some appropriate struts 2 junit tests so I can
figure this out?
Musachy Barroso wrote:
you are creating an action
you are creating an action and invoking a method on it, Struts is not
involved at all in that. You might want to look at the struts junits
to see how you can invoke an action.
musachy
On Mon, Feb 23, 2009 at 12:57 PM, Timothy Astle wrote:
> I'm following the approach given here for writing unit
I'm following the approach given here for writing unit tests for actions:
http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/
My Problem:
I want to write a unit test that will verify that getSettings() returns
back a JSON string. However, when I run t
8 matches
Mail list logo