jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Mick.Knut...@wellsfargo.com>
Subject RE: Errors that don't make sense...
Date Wed, 01 Dec 2004 00:11:29 GMT
I basically have a method that returns a Long(987654321), and I make an assert like this:

assertEqual( new Long(987654321), methodReturningLoing987654321() );


--------------------
Mick Knutson
Wells Fargo Business Direct
(415) 222-1020

"This message may contain confidential and/or privileged information. If you are not the addressee
or authorized to receive this for the addressee, you must not use, copy, disclose, or take
any action based on this message or any information herein. If you have received this message
in error, please advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation."
--------------------



-----Original Message-----
From: Cumbers [mailto:rlc5@kent.ac.uk]
Sent: Tuesday, November 30, 2004 4:03 PM
To: Cactus Users List
Subject: Re: Errors that don't make sense...


Could you give us the test case code that is failing?

Mick.Knutson@wellsfargo.com wrote:
> I keep running my tests, and keep getting failures like this:
> 
> expected:<987654321> but was:<987654321>
> 
> junit.framework.AssertionFailedError: expected:<987654321> but
> was:<987654321> at com.wf.bd.ice.business.BusinessValidatorFormTest.testSetGetBankAccount_1(BusinessValidatorFormTest.java:670)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
> This does not make sense as the 2 values are java.lang.Long()'s and match as stated above....
> 
> 
> 
> 
> --------------------
> Mick Knutson
> Wells Fargo Business Direct Information Systems
> (415) 222-1020
> 
> "This message may contain confidential and/or privileged information. If you are not
the addressee or authorized to receive this for the addressee, you must not use, copy, disclose,
or take any action based on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail and delete this message.
Thank you for your cooperation."
> --------------------
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org


Mime
View raw message