Fair warning: these examples are contrived, but the structure is very much based on a real world problem.
testing against a shared persistence layer Recently I was writing a series of unit tests for a homegrown query language. The query language was designed to be end-user friendly for moderately to advanced technical users. The data being searched on is stored in ElasticSearch, and we needed to test a variety of edge cases and ensure that they were correctly translated into ES queries.
...
Read more