Mike,

> -----Original Message-----
> From: COUNSELL,MIKE (HP-UnitedKingdom,ex1)
[mailto:[EMAIL PROTECTED]]
> Sent: 15 March 2002 19:28
> To: 'Cactus Users List'
> Subject: RE: feature query
> 
> Vincent
> 
> Your right on the mark, I could just assert the result but I also
wanted
> to
> see what I was asserting.
> I wanted to see the expected and actual Japanese Strings. assertEquals
> will
> just print to the PrintWriter correct?
> 
> Maybe I am missing something, or just wanting too much :-)

It is up to you but one of the idea about unit testing using JUnit like
frameworks is to be able to perform automated regression testing. Thus,
everything is automated and you shouldn't rely on any visual.

I'm curious to know why in your case the assert isn't enough to
guarantee that it works ?

Cheers,
-Vincent

> 
> Thanks for the reply
> Mike
> 
> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 7:06 PM
> To: 'Cactus Users List'
> Subject: RE: feature query
> 
> 
> Mike,
> 
> I'm not sure I understand your issue. You have some method of an EJB
> that returns some value that depends on i8n settings (locale) ? And
you
> want to verify it works with several different locales ?
> 
> If so, why do you need to do this log stuff ? Why don't you set the
> locale before the test, run the test and assert the result.
> 
> I'm sure I am missing something ! ;-)
> 
> Thanks
> -Vincent
> 
> > -----Original Message-----
> > From: COUNSELL,MIKE (HP-UnitedKingdom,ex1)
> [mailto:[EMAIL PROTECTED]]
> > Sent: 25 February 2002 16:43
> > To: '[EMAIL PROTECTED]'
> > Subject: feature query
> >
> > I needed to unit test an EJB for i18n purposes so I wrote a couple
of
> > extensions to JUnit that allowed Tests to write log to a Writer
rather
> > than
> > stdout, this is then sent back to a browser from a Servlet. Have I
> just
> > repeated something that is already implemented in Cactus or does
> Cactus
> > rely
> > on PrintStreams also?
> >
> > Thanks
> > Mike
> >
> > --
> > To unsubscribe, e-mail:   <mailto:cactus-user-
> > [EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:cactus-user-
> > [EMAIL PROTECTED]>
> >
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:cactus-user-
> [EMAIL PROTECTED]>
> 




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

Reply via email to