I’ve just spent about a day trying different embeddable Java LDAP servers. To save you from all the trouble I came across I’m going to share some of my experiences.
Basically you have three choices when it comes to embeddable Java LDAP servers (at least open source). First of you have Sun’s OpenDS, they have a [...]
Want to unit test a private method in Java?
You could obviously change your methods access modifier from private. By making it public you’re breaking encapsulation and by making it protected you’re making your API less intuitive. Don’t do that.
Another way to go about this is to create a new class that’s extending the one with [...]