Sometimes when writing new code, I often get failures such as this:
java.lang.Exception:
'VehicleCreated(00000000-0000-002a-0000-00000000002a,vin,lp)' is not
equal to 'VehicleCreated(00000000-0000-002a-0000-00000000002a,vin,lp)'
which is not very informative :-) I guess this is usually caused (at
least for me) by the values being different types but yielding the
same toString output. Perhaps it's possibly to augment the error with
type info if the two string representations are the same. Wdyt?
I know about the ==== matcher but I don't like the way it reads, e.g.
events ==== VehicleCreated(fixedId, "vin", "lp")
doens't really say that we're asserting something....
/Jeppe
events is actually a List so the following worked
events must_== List(VehicleCreated(...))
It's just a little hard to figure out when the string representations
are the same. Not sure why they print the same though...
/Jeppe
During all the switching back & forth between 1.8.2 and 1.9-SNAPSHOT i
forgot to update my eclipse project!
1.9-SNAPSHOT behaves exactly like I would like. Thanks for reading my mind :-)
/Jeppe