I also notice that a bug has been filed by another individual on
sourceforge that is displaying this same behavior...so I guess
you are right.

Pete

> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Thomas Quas
> Sent: Tuesday, November 19, 2002 1:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Strutstest with tiles - verifyForward behavior
> 
> 
> 
> Pete,
> 
> I'm seeing the same behavior... plus more weirdness. I'm using the 
> latest CVS snapshot; I guess strutstestcase is not ready for testing 
> those kind of Struts applications yet.
> 
> 
> tom
> 
> Pete Gieser wrote:
> > Using MockStrutsCase (from release 1.9) with the following 
> test method:
> >  
> >     public void testManagerSuccess()
> >     {
> >         setRequestPathInfo("/famnet");
> >         actionPerform();
> >         verifyForward("success");
> >         assertNotNull(getSession().getAttribute("members"));
> >         verifyNoActionErrors();
> >     }
> > 
> > and this section from struts-config.xml:
> >  
> >     <action path="/famnet" type="famnet.ManagerAction">
> >       <forward name="success" path="famnet.list" />
> >     </action>
> > 
> > and this section from tiles-def.xml:
> >  
> >   <definition name="famnet.list" path="/layout/layout.jsp"
> > extends="main.layout">
> >     <put name="title"  value="Members"/>
> >     <put name="body"   value="/famnet/listBody.jsp"/>
> >   </definition>
> > 
> > I'm getting the following error:
> >  
> > processActionForward(famnet.list, false)
> >   'famnet.list' - processed as definition
> > ------------- ---------------- ---------------
> >  
> > Testcase: testManagerSuccess took 3.636 sec
> >  FAILED
> > was expecting 'famnet.list' but received '/layout/layout.jsp'
> > junit.framework.AssertionFailedError: was expecting 
> 'famnet.list' but
> > received '/layout/layout.jsp'


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

Reply via email to