Mockito
-
Core Java
Mockito Tutorial: Testing and Mocking with Mockito
Course Overview Mockito is an open source testing framework for Java released under the MIT License.The framework allows the creation…
Read More » -
Core Java
More compact Mockito with Java 8, lambda expressions and Mockito-Java8 add-ons
Mockito-Java8 is a set of Mockito add-ons leveraging Java 8 and lambda expressions to make mocking with Mockito even more…
Read More » -
Enterprise Java
Writing Clean Tests – Trouble in Paradise
If our code has obvious faults, we are very motivated to improve it. However, at some point we decide that…
Read More » -
Core Java
Book Review: Mockito Essentials
The subtitle of Sujoy Acharya‘s Mockito Essentials (Packt Publishing, October 2014) is: “A practical guide to get you up and…
Read More » -
Core Java
Unit Testing exercise with FizzBuzz and Mockito
I sometimes use FizzBuzz to demonstrate the basics of unit testing to newbies. Although FizzBuzz is really simple problem, it…
Read More » -
Core Java
Mockito 101
Mockito is a mocking framework that lets you write beatiful tests with clean and simple API. It biases toward minimal…
Read More » -
Core Java
Writing Clean Tests – Divide and Conquer
A good unit test should fail for only one reason. This means that a proper unit test tests only one…
Read More » -
Core Java
Writing Clean Tests – Beware of Magic
It is pretty hard to figure out a good definition for clean code because everyone of us has our own…
Read More » -
Core Java
What are Mockito Extra Interfaces?
Mockito is my favored little helper if it comes down to write light weight JUnit tests. It is very useful…
Read More »