Ah. Yes.  Sorry for the oversight.  And thanks for the cleanup.

Steven Caswell
[EMAIL PROTECTED]
a.k.a Mungo Knotwise of Michel Delving
"One ring to rule them all, one ring to find them..."


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of Daniel Rall
> Sent: Saturday, March 09, 2002 12:46 PM
> To: Jakarta Commons Developers List
> Cc: [EMAIL PROTECTED]
> Subject: Re: [lang] test classes for commons.lang.exception package
> 
> 
> Daniel Rall <[EMAIL PROTECTED]> writes:
> 
> > "Steven Caswell" <[EMAIL PROTECTED]> writes:
> >
> >> Hi Dan.  I ran ant test.exception and everything works 
> fine. Is there 
> >> something else I can do to help resolve the problem?
> >
> > I changed the failure case to use assertEquals() instead of
> > assertTrue():
> >
> > test.exception:
> > Running exception package tests ...
> > ...F..
> > Time: 0.074
> > There was 1 failure:
> > 1) 
> > 
> testNestableDelegetePrintStackTrace(org.apache.commons.lang.ex
> ception.NestableDelegateTestCase)junit.framework.AssertionFail
> edError: stack trace substring(954,1022) == rethrown as 
> ThrowableNestedNestable partial stack trace place-holder 
> expected:<rethrown as ThrowableNestedNestable partial stack 
> trace place-holder> but was:< rethrown as 
> ThrowableNestedNestable partial stack trace place-holde>
> >     at 
> > 
> org.apache.commons.lang.exception.NestableDelegateTestCase.testNestabl
> > eDelegetePrintStackTrace(NestableDelegateTestCase.java)
> 
> I figured it out.  Your test case was Windows-centric, always 
> assuming that line separators were of length 2.  I corrected 
> this by using the system property line.separator and getting 
> the length of that.
> 
> - Dan
> 



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to