j.u.Objects follow-up: deepEquals(Object, Object)? (original) (raw)
Ulf Zibis Ulf.Zibis at gmx.de
Fri Oct 9 09:33:37 UTC 2009
- Previous message: j.u.Objects follow-up: deepEquals(Object, Object)?
- Next message: j.u.Objects follow-up: deepEquals(Object, Object)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Am 09.10.2009 11:30, Eamonn McManus schrieb:
Joseph D. Darcy wrote: > What are scenarios where this method would be used?
I use a similar method fairly often in unit tests. JUnit's assertEquals doesn't do the right thing if its arguments happen to be arrays, so I use the following simple if inefficient implementation:
Don't you know about assertArrayEquals() in JUnit ? It's in version 4.5.
-Ulf
- Previous message: j.u.Objects follow-up: deepEquals(Object, Object)?
- Next message: j.u.Objects follow-up: deepEquals(Object, Object)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]