Testing in Java

Mocking is hard in Java. I don’t mean “Hey you, abstract class, GROW UP!!!”.

How do I mock out a unit in Java ? What mocking framework is there to mock it ? Maybe I could use JRuby to mock it out but then, you would hope there is one in Java itself !

I have Sub::Override in Perl, I have RSpec‘s internal mockers, but in Java, I don’t know. JUnit does not provide anything of that sort. *sigh*

About “Mujtaba Hussain”

I have no idea what to write here :(