Mockito
-
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 » -
Enterprise Java
JUnit and Mockito cooperation
This time I want to make an overview of testing framework Mockito. Definitely this is one of the most popular…
Read More » -
Enterprise Java
Answering with Mockito
When you are writing unit tests, you must keep in mind to not have dependencies to external components. To avoid…
Read More » -
Enterprise Java
Mockito – Better error messages on NPE with globally configured SmartNull
Writing the Mockito reference card I had an opportunity to take a closer look at the less popular, but very…
Read More » -
Enterprise Java
Test-driving Builders with Mockito and Hamcrest
A lot of people asked me in the past if I test getters and setters (properties, attributes, etc). They also…
Read More »