RE: StrutsTestCase question

2003-06-18 Thread Chappell, Simon P
Following up: I now have this working on my Mac under OS X. Very nice. The same setup 
is still breaking under W2K and Cygwin. Bummer! Any thoughts?

Simon

>-Original Message-
>From: Chappell, Simon P 
>Sent: Wednesday, June 18, 2003 4:41 PM
>To: Struts Users Mailing List
>Subject: RE: StrutsTestCase question
>
>
>You read my mind! :-)
>
>I'm now trying to get the StrutsTestCase example to work, with 
>everything that I need being referenced on the system 
>CLASSPATH, but I still can't get it to work. Right now, I 
>can't even get the example files to compile! Grr!
>
>Simon
>
>>-Original Message-
>>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, June 18, 2003 4:36 PM
>>To: 'Struts Users Mailing List'
>>Subject: RE: StrutsTestCase question
>>
>>
>>Try explicitly putting it in your classpath - that's what I do 
>>- rather than
>>relying on Ant's classloader.
>>
>>-Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, June 18, 2003 1:58 PM
>>To: Struts Users Mailing List
>>Subject: RE: StrutsTestCase question
>>
>>
>>Matt,
>>
>>I'm just not getting it. But I am getting a NoClassDefFoundError on
>>MocStrutsTestCase and there are lots of classloader references 
>>in the stack
>>trace. I have strutstest-2.0.0.jar in my ant lib directory, so 
>>why can't
>>junit see it?
>>
>>Simon
>>
>>>-Original Message-
>>>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>>>Sent: Wednesday, June 18, 2003 1:20 PM
>>>To: 'Struts Users Mailing List'
>>>Subject: RE: StrutsTestCase question
>>>
>>>
>>>One difference I noticed is that you're using the Mock 
>>>approach, while I'm
>>>using the in-container approach.  Here's the relevant part of 
>>>my JUnit task
>>>(adapted from Erik Hatcher's JDWA book).  This is actually 
>>>used to run *all*
>>>my tests - JUnit/Cactus/StrutsTestCase/etc.
>>>
>>>>>errorProperty="test.failed"
>>>failureProperty="test.failed"
>>>fork="${junit.fork}">
>>>
>>>
>>>
>>>>>location="${build.dir}/${module}/classes"/>
>>>>location="${test.dir}/${module}/classes"/>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>>includes="**/*${testcase}*.class"
>>>/>
>>>
>>>    
>>>>>includes="**/*Test.class"
>>>/>
>>>
>>>
>>>
>>>HTH,
>>>
>>>Matt
>>>
>>>-Original Message-
>>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>>Sent: Wednesday, June 18, 2003 12:14 PM
>>>To: Struts Users Mailing List
>>>Subject: RE: StrutsTestCase question
>>>
>>>
>>>Matt,
>>>
>>>I think my issue is more of configuration, the test cases look pretty
>>>straightforward themselves.
>>>
>>>Simon
>>>
>>>>-Original Message-
>>>>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>>>>Sent: Wednesday, June 18, 2003 12:14 PM
>>>>To: 'Struts Users Mailing List'
>>>>Subject: RE: StrutsTestCase question
>>>>
>>>>
>>>>I use it daily (hourly?) and it works great for me.  Here's a sample
>>>>TestCase: http://tinyurl.com/emwp
>>>>
>>>>Matt
>>>>
>>>>-Original Message-
>>>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>>>Sent: Wednesday, June 18, 2003 10:55 AM
>>>>To: Struts Mailing List (E-mail)
>>>>Subject: StrutsTestCase question
>>>>
>>>>
>>>>Has anyone had any luck getting StrutsTestCase to work? It's 
>>>>an extension of
>>>>JUnit, which we already use on our project, but I have had no 
>>>>luck getting
>>>>it to run. I've read that HowTo and the FAQ and the Intro and 
>>>>looked at the
>>>>sourceforge forums

RE: StrutsTestCase question

2003-06-18 Thread Chappell, Simon P
You read my mind! :-)

I'm now trying to get the StrutsTestCase example to work, with everything that I need 
being referenced on the system CLASSPATH, but I still can't get it to work. Right now, 
I can't even get the example files to compile! Grr!

Simon

>-Original Message-
>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 4:36 PM
>To: 'Struts Users Mailing List'
>Subject: RE: StrutsTestCase question
>
>
>Try explicitly putting it in your classpath - that's what I do 
>- rather than
>relying on Ant's classloader.
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 1:58 PM
>To: Struts Users Mailing List
>Subject: RE: StrutsTestCase question
>
>
>Matt,
>
>I'm just not getting it. But I am getting a NoClassDefFoundError on
>MocStrutsTestCase and there are lots of classloader references 
>in the stack
>trace. I have strutstest-2.0.0.jar in my ant lib directory, so 
>why can't
>junit see it?
>
>Simon
>
>>-Original Message-----
>>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, June 18, 2003 1:20 PM
>>To: 'Struts Users Mailing List'
>>Subject: RE: StrutsTestCase question
>>
>>
>>One difference I noticed is that you're using the Mock 
>>approach, while I'm
>>using the in-container approach.  Here's the relevant part of 
>>my JUnit task
>>(adapted from Erik Hatcher's JDWA book).  This is actually 
>>used to run *all*
>>my tests - JUnit/Cactus/StrutsTestCase/etc.
>>
>>>errorProperty="test.failed"
>>failureProperty="test.failed"
>>fork="${junit.fork}">
>>
>>
>>
>>>location="${build.dir}/${module}/classes"/>
>>location="${test.dir}/${module}/classes"/>
>>
>>
>>
>>
>>
>>
>>>    includes="**/*${testcase}*.class"
>>/>
>>
>>
>>>includes="**/*Test.class"
>>/>
>>
>>
>>
>>HTH,
>>
>>Matt
>>
>>-----Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, June 18, 2003 12:14 PM
>>To: Struts Users Mailing List
>>Subject: RE: StrutsTestCase question
>>
>>
>>Matt,
>>
>>I think my issue is more of configuration, the test cases look pretty
>>straightforward themselves.
>>
>>Simon
>>
>>>-Original Message-
>>>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>>>Sent: Wednesday, June 18, 2003 12:14 PM
>>>To: 'Struts Users Mailing List'
>>>Subject: RE: StrutsTestCase question
>>>
>>>
>>>I use it daily (hourly?) and it works great for me.  Here's a sample
>>>TestCase: http://tinyurl.com/emwp
>>>
>>>Matt
>>>
>>>-Original Message-
>>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>>Sent: Wednesday, June 18, 2003 10:55 AM
>>>To: Struts Mailing List (E-mail)
>>>Subject: StrutsTestCase question
>>>
>>>
>>>Has anyone had any luck getting StrutsTestCase to work? It's 
>>>an extension of
>>>JUnit, which we already use on our project, but I have had no 
>>>luck getting
>>>it to run. I've read that HowTo and the FAQ and the Intro and 
>>>looked at the
>>>sourceforge forums, but have found nothing that helps.
>>>
>>>Time to call for "International Rescue"! :-)
>>>
>>>Simon
>>>
>>>-
>>>Simon P. Chappell [EMAIL PROTECTED]
>>>Java Programming Specialist  www.landsend.com
>>>Lands' End, Inc.   (608) 935-4526
>>>
>>>"Never give in - never, never, never, never, in nothing great or
>>>small, large or petty, never give in except to convictions of
>>>honor and good sense." - Sir Winston Churchill
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED

RE: StrutsTestCase question

2003-06-18 Thread Raible, Matt
Try explicitly putting it in your classpath - that's what I do - rather than
relying on Ant's classloader.

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:58 PM
To: Struts Users Mailing List
Subject: RE: StrutsTestCase question


Matt,

I'm just not getting it. But I am getting a NoClassDefFoundError on
MocStrutsTestCase and there are lots of classloader references in the stack
trace. I have strutstest-2.0.0.jar in my ant lib directory, so why can't
junit see it?

Simon

>-Original Message-
>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 1:20 PM
>To: 'Struts Users Mailing List'
>Subject: RE: StrutsTestCase question
>
>
>One difference I noticed is that you're using the Mock 
>approach, while I'm
>using the in-container approach.  Here's the relevant part of 
>my JUnit task
>(adapted from Erik Hatcher's JDWA book).  This is actually 
>used to run *all*
>my tests - JUnit/Cactus/StrutsTestCase/etc.
>
>errorProperty="test.failed"
>failureProperty="test.failed"
>fork="${junit.fork}">
>
>
>
>location="${build.dir}/${module}/classes"/>
>
>
>
>
>
>
>
>includes="**/*${testcase}*.class"
>/>
>
>
>includes="**/*Test.class"
>        />
>
>
>
>HTH,
>
>Matt
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 12:14 PM
>To: Struts Users Mailing List
>Subject: RE: StrutsTestCase question
>
>
>Matt,
>
>I think my issue is more of configuration, the test cases look pretty
>straightforward themselves.
>
>Simon
>
>>-Original Message-
>>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, June 18, 2003 12:14 PM
>>To: 'Struts Users Mailing List'
>>Subject: RE: StrutsTestCase question
>>
>>
>>I use it daily (hourly?) and it works great for me.  Here's a sample
>>TestCase: http://tinyurl.com/emwp
>>
>>Matt
>>
>>-Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, June 18, 2003 10:55 AM
>>To: Struts Mailing List (E-mail)
>>Subject: StrutsTestCase question
>>
>>
>>Has anyone had any luck getting StrutsTestCase to work? It's 
>>an extension of
>>JUnit, which we already use on our project, but I have had no 
>>luck getting
>>it to run. I've read that HowTo and the FAQ and the Intro and 
>>looked at the
>>sourceforge forums, but have found nothing that helps.
>>
>>Time to call for "International Rescue"! :-)
>>
>>Simon
>>
>>-
>>Simon P. Chappell [EMAIL PROTECTED]
>>Java Programming Specialist  www.landsend.com
>>Lands' End, Inc.   (608) 935-4526
>>
>>"Never give in - never, never, never, never, in nothing great or
>>small, large or petty, never give in except to convictions of
>>honor and good sense." - Sir Winston Churchill
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: StrutsTestCase question

2003-06-18 Thread Ted Husted
Yes, the Mock Object approach can be finicky when it comes to how the 
directories are laid out. It was working like a charm for us, but then 
we reorganized the directory layout, and now not all the tests run as 
they did before. I'm going to try moving over to the Cactus version to 
see if that helps.

But when this baby works, it's the cat's meow!

-Ted.

Butash, Bob wrote:
I ran into something similar, when you are using the Mock Object approach
you have to make sure your WEB-INF directory is part of your class path,
otherwise it will not be able to run correctly.
It needs the WEB-INF directory in the class path because it loads the
configuration files as resources through the JVM's class loader.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: StrutsTestCase question

2003-06-18 Thread Chappell, Simon P
Matt,

I'm just not getting it. But I am getting a NoClassDefFoundError on MocStrutsTestCase 
and there are lots of classloader references in the stack trace. I have 
strutstest-2.0.0.jar in my ant lib directory, so why can't junit see it?

Simon

>-Original Message-
>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 1:20 PM
>To: 'Struts Users Mailing List'
>Subject: RE: StrutsTestCase question
>
>
>One difference I noticed is that you're using the Mock 
>approach, while I'm
>using the in-container approach.  Here's the relevant part of 
>my JUnit task
>(adapted from Erik Hatcher's JDWA book).  This is actually 
>used to run *all*
>my tests - JUnit/Cactus/StrutsTestCase/etc.
>
>errorProperty="test.failed"
>failureProperty="test.failed"
>fork="${junit.fork}">
>
>
>
>location="${build.dir}/${module}/classes"/>
>
>
>
>
>
>
>
>includes="**/*${testcase}*.class"
>/>
>
>
>includes="**/*Test.class"
>    />
>    
>
>
>HTH,
>
>Matt
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 12:14 PM
>To: Struts Users Mailing List
>Subject: RE: StrutsTestCase question
>
>
>Matt,
>
>I think my issue is more of configuration, the test cases look pretty
>straightforward themselves.
>
>Simon
>
>>-Original Message-
>>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, June 18, 2003 12:14 PM
>>To: 'Struts Users Mailing List'
>>Subject: RE: StrutsTestCase question
>>
>>
>>I use it daily (hourly?) and it works great for me.  Here's a sample
>>TestCase: http://tinyurl.com/emwp
>>
>>Matt
>>
>>-Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, June 18, 2003 10:55 AM
>>To: Struts Mailing List (E-mail)
>>Subject: StrutsTestCase question
>>
>>
>>Has anyone had any luck getting StrutsTestCase to work? It's 
>>an extension of
>>JUnit, which we already use on our project, but I have had no 
>>luck getting
>>it to run. I've read that HowTo and the FAQ and the Intro and 
>>looked at the
>>sourceforge forums, but have found nothing that helps.
>>
>>Time to call for "International Rescue"! :-)
>>
>>Simon
>>
>>-
>>Simon P. Chappell [EMAIL PROTECTED]
>>Java Programming Specialist  www.landsend.com
>>Lands' End, Inc.   (608) 935-4526
>>
>>"Never give in - never, never, never, never, in nothing great or
>>small, large or petty, never give in except to convictions of
>>honor and good sense." - Sir Winston Churchill
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: StrutsTestCase question

2003-06-18 Thread Butash, Bob
I ran into something similar, when you are using the Mock Object approach
you have to make sure your WEB-INF directory is part of your class path,
otherwise it will not be able to run correctly.

It needs the WEB-INF directory in the class path because it loads the
configuration files as resources through the JVM's class loader.

-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 2:20 PM
To: 'Struts Users Mailing List'
Subject: RE: StrutsTestCase question


One difference I noticed is that you're using the Mock approach, while I'm
using the in-container approach.  Here's the relevant part of my JUnit task
(adapted from Erik Hatcher's JDWA book).  This is actually used to run *all*
my tests - JUnit/Cactus/StrutsTestCase/etc.




















HTH,

Matt

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 12:14 PM
To: Struts Users Mailing List
Subject: RE: StrutsTestCase question


Matt,

I think my issue is more of configuration, the test cases look pretty
straightforward themselves.

Simon

>-Original Message-
>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 12:14 PM
>To: 'Struts Users Mailing List'
>Subject: RE: StrutsTestCase question
>
>
>I use it daily (hourly?) and it works great for me.  Here's a sample
>TestCase: http://tinyurl.com/emwp
>
>Matt
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 10:55 AM
>To: Struts Mailing List (E-mail)
>Subject: StrutsTestCase question
>
>
>Has anyone had any luck getting StrutsTestCase to work? It's 
>an extension of
>JUnit, which we already use on our project, but I have had no 
>luck getting
>it to run. I've read that HowTo and the FAQ and the Intro and 
>looked at the
>sourceforge forums, but have found nothing that helps.
>
>Time to call for "International Rescue"! :-)
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>"Never give in - never, never, never, never, in nothing great or
>small, large or petty, never give in except to convictions of
>honor and good sense." - Sir Winston Churchill
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: StrutsTestCase question

2003-06-18 Thread Raible, Matt
One difference I noticed is that you're using the Mock approach, while I'm
using the in-container approach.  Here's the relevant part of my JUnit task
(adapted from Erik Hatcher's JDWA book).  This is actually used to run *all*
my tests - JUnit/Cactus/StrutsTestCase/etc.




















HTH,

Matt

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 12:14 PM
To: Struts Users Mailing List
Subject: RE: StrutsTestCase question


Matt,

I think my issue is more of configuration, the test cases look pretty
straightforward themselves.

Simon

>-Original Message-
>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 12:14 PM
>To: 'Struts Users Mailing List'
>Subject: RE: StrutsTestCase question
>
>
>I use it daily (hourly?) and it works great for me.  Here's a sample
>TestCase: http://tinyurl.com/emwp
>
>Matt
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 10:55 AM
>To: Struts Mailing List (E-mail)
>Subject: StrutsTestCase question
>
>
>Has anyone had any luck getting StrutsTestCase to work? It's 
>an extension of
>JUnit, which we already use on our project, but I have had no 
>luck getting
>it to run. I've read that HowTo and the FAQ and the Intro and 
>looked at the
>sourceforge forums, but have found nothing that helps.
>
>Time to call for "International Rescue"! :-)
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>"Never give in - never, never, never, never, in nothing great or
>small, large or petty, never give in except to convictions of
>honor and good sense." - Sir Winston Churchill
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: StrutsTestCase question

2003-06-18 Thread Chappell, Simon P
Matt,

I think my issue is more of configuration, the test cases look pretty straightforward 
themselves.

Simon

>-Original Message-
>From: Raible, Matt [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 12:14 PM
>To: 'Struts Users Mailing List'
>Subject: RE: StrutsTestCase question
>
>
>I use it daily (hourly?) and it works great for me.  Here's a sample
>TestCase: http://tinyurl.com/emwp
>
>Matt
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 10:55 AM
>To: Struts Mailing List (E-mail)
>Subject: StrutsTestCase question
>
>
>Has anyone had any luck getting StrutsTestCase to work? It's 
>an extension of
>JUnit, which we already use on our project, but I have had no 
>luck getting
>it to run. I've read that HowTo and the FAQ and the Intro and 
>looked at the
>sourceforge forums, but have found nothing that helps.
>
>Time to call for "International Rescue"! :-)
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>"Never give in - never, never, never, never, in nothing great or
>small, large or petty, never give in except to convictions of
>honor and good sense." - Sir Winston Churchill
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: StrutsTestCase question

2003-06-18 Thread Chappell, Simon P
Here's my fragment of ant build (works fine for standard junit tests) to which I added 
the fork="true", per the StrutsTestCase README:






















Here is my test testcase:

package com.landsend.ops.ps3.ui.struts.actions;

import servletunit.struts.MockStrutsTestCase;

public class LogonActionTest extends MockStrutsTestCase {
public LogonActionTest(String s) { super(s); }

public void testSuccessfulLogon() {
setRequestPathInfo("/logon");
}
}

And I have the strutstest-2.0.0.jar in my ant lib directory with my junit.jar

Simon

>-Original Message-
>From: Greg Reddin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 18, 2003 12:05 PM
>To: Struts Users Mailing List
>Subject: Re: StrutsTestCase question
>
>
>I've not used it very extensively yet, but have gotten it to work in 
>some simple cases.  Can you elaborate on the problems you're having?
>
>Greg
>
>Chappell, Simon P wrote:
>> Has anyone had any luck getting StrutsTestCase to work? It's 
>an extension of JUnit, which we already use on our project, 
>but I have had no luck getting it to run. I've read that HowTo 
>and the FAQ and the Intro and looked at the sourceforge 
>forums, but have found nothing that helps.
>> 
>> Time to call for "International Rescue"! :-)
>> 
>> Simon
>> 
>> -
>> Simon P. Chappell [EMAIL PROTECTED]
>> Java Programming Specialist  www.landsend.com
>> Lands' End, Inc.   (608) 935-4526
>> 
>> "Never give in - never, never, never, never, in nothing great or
>> small, large or petty, never give in except to convictions of
>> honor and good sense." - Sir Winston Churchill
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: StrutsTestCase question

2003-06-18 Thread Raible, Matt
I use it daily (hourly?) and it works great for me.  Here's a sample
TestCase: http://tinyurl.com/emwp

Matt

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 10:55 AM
To: Struts Mailing List (E-mail)
Subject: StrutsTestCase question


Has anyone had any luck getting StrutsTestCase to work? It's an extension of
JUnit, which we already use on our project, but I have had no luck getting
it to run. I've read that HowTo and the FAQ and the Intro and looked at the
sourceforge forums, but have found nothing that helps.

Time to call for "International Rescue"! :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526

"Never give in - never, never, never, never, in nothing great or
small, large or petty, never give in except to convictions of
honor and good sense." - Sir Winston Churchill

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: StrutsTestCase question

2003-06-18 Thread Greg Reddin
I've not used it very extensively yet, but have gotten it to work in 
some simple cases.  Can you elaborate on the problems you're having?

Greg

Chappell, Simon P wrote:
Has anyone had any luck getting StrutsTestCase to work? It's an extension of JUnit, which we already use on our project, but I have had no luck getting it to run. I've read that HowTo and the FAQ and the Intro and looked at the sourceforge forums, but have found nothing that helps.

Time to call for "International Rescue"! :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526
"Never give in - never, never, never, never, in nothing great or
small, large or petty, never give in except to convictions of
honor and good sense." - Sir Winston Churchill
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]