If you have ever used the OpenDJ Java SDK to connect to and OpenDJ Directory Server from your application chances are that you’ve asked yourself the following question: how the hell do I test this?
Yes, you can mock most external objects and even spin up an external OpenDJ server for your integration tests, but you wonder if there is a cleaner and more portable approach.
In this post I will talk about using an In-memory Backend that will greatly simplify your unit test cases while letting you increase your test coverage. I am currently experimenting with OpenDJ Docker images for integration testing and I plan to publish my approach in a future post.
Read More →