I’m at it again.
I thought I’d noodle with an idea I had to build on some simple JSON assertions that I created in a previous contract. My aim is actually much grander. I want to be able to create assertions for other DOMs in a way that’s similar to AssertJ (which is excellent), but also interoperable with other libraries that use a matcher style of comparison/assertion.
What I hoped to be able to do was rattle off a quick path-based assertion library, then a more customisable version of JSONAssert – much as I’d done before, and then move onto an HTML DOM Assert, based on jsoup.
Though I’ve only been playing with this in my spare time, the permutational explosion of making something useful is somewhat laborious, but I’ve reached a point where I don’t mind the source code being visible. I’m not releasing to maven central until I’ve got a little further down the road.
If you’re interested, take a look.