Mockito
-
Core Java
Mocks, Spies, Partial Mocks and Stubbing
This article is part of our Academy Course titled Testing with Mockito. In this course, you will dive into the…
Read More » -
Core Java
Getting started with Mockito
This article is part of our Academy Course titled Testing with Mockito. In this course, you will dive into the…
Read More » -
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 »