Monthly Archives: October 2016

Unit testing default methods in interfaces

Java 8 has introduced a nice feature, default (so-called “defender”) methods in interfaces. These methods are implemented in the interface, but can be overridden. Now how can we unit-test these default methods? A naive approach would be: in your unit test … Continue reading

Posted in Uncategorized | Leave a comment