Blog

Posts Tagged ‘unit testing

02 Apr, 2009

Embedded Java LDAP server for unit testing

Posted by: admin In: Programming

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 [...]

23 Jan, 2009

Unit testing private methods in Java

Posted by: admin In: Programming

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 [...]