Mockito
-
Core Java
Getting started with Mocking in Java using Mockito
We all write unit tests but the challenge we face at times is that the unit under test might be…
Read More » -
Core Java
Mockito Templates for Eclipse
Sometimes I miss the forest for the trees – and that for a disturbingly long time. I just became aware…
Read More » -
Core Java
Mock final class
Foreword If you already read some other blog post about unusual mocking, you can skip prelude via this link. I…
Read More » -
Enterprise Java
Use Mockito to mock autowired fields
Dependency injection is very powerful feature of Inversion of Control containers like Spring and EJB. It is always good idea…
Read More » -
Enterprise Java
Testing Spring components with Mockito
Be able to unit test your spring components without the need of loading the full spring-context with its ad-hoc test…
Read More » -
Core Java
Injecting Test Doubles in Spring using Mockito and BeanPostProcessors
I’m pretty sure that if you have ever used Spring and are familliar with unit testing, you have encountered a…
Read More » -
Core Java
Imbibing the Fluency of Mockito
I recently found myself writing some code to integrate two disparate platforms. One of these systems is Java based and…
Read More » -
Core Java
Mockito – RETURNS_DEEP_STUBS for JAXB
Sorry for not having written for some time but I was busy with writing the JBoss Drools Refcard for DZone…
Read More » -
Enterprise Java
Mockito – Extra Interfaces with annotations and static methods
In the code I have quite recently came across a really bad piece of code that based on class casting…
Read More »