A while back I wrote an entry describing how to use the Java Equal() method to compare two structs. I had looked this up because I was writing some unit tests and (obviously) needed to assert that one struct was equal to another struct.
As usual I probably should have referenced the CFC Unit docs before referencing the Java docs. Nonetheless, I did recently take a look at the assert methods provided in CFC Unit. In case your interested they can be viewed here. So there is an assert method assertEqualsStruct() that from what I can tell compares the data and structure of two structs. As such if you’re writing unit tests using CFCUnit you can also use this assert to perform the same check. Again from what I can tell they both do the same thing. So just wanted to post the update.