Mocking out LDAP/JNDI in unit tests

When unit testing a class that queries an LDAP server using Java’s JNDI API I needed to replace the actual remote LDAP server with a mock LDAP access layer so that the unit test (remember, this is not an integration test) doesn’t depend on any external SW/HW. Few hours of googling haven’t yielded any suitableContinue reading “Mocking out LDAP/JNDI in unit tests”

Design a site like this with WordPress.com
Get started