Completely agree, Matt. All comparisons will be deep comparisons between DOMs or JSONObjects. I've written a couple of utility methods to do the deep comparisons, which ignores whitespace and element ordering. So far, it's made the whole testing process MUCH cleaner and maintainable for future revisions to these data components.
One question: I'm loading the test fixtures using Shindig's ResourceLoader. Unfortunately, this loader seems to require that the test data exist in a subdirectory of "content." I'd like to keep the fixture data within a "fixture" folder alongside the actual Java test code. Does anyone have a preferred way of doing this? Thanks, - Eric W.
