JUnit
-
Core Java
JUnit 5 – Basics
JUnit 5 is the next generation unit testing framework for Java equipped with many interesting features including nested tests, parameterized…
Read More » -
Core Java
Modern TDD-oriented Java 8 JUnit test template for Idea (with Mockito and AssertJ)
Tune up your JUnit test class template for Idea with the BDD-like syntax, Java 8 and the Mockito-AssertJ duo. Topics…
Read More » -
Core Java
Lifecycle of JUnit 5 Extension Model
JUnit5 final release is around the corner (currently it is M4), and I have started playing with it a bit…
Read More » -
Core Java
Cleaner parameterized tests with JUnit 5
The general idea of parameterized unit tests is to run the same test method for different data. Creating parameterized tests…
Read More » -
Core Java
Testing exceptions with JUnit 5
JUnit 5 brought pretty awesome improvements and it differs a lot from its predecessor. JUnit 5 requires Java 8 at…
Read More » -
Core Java
JUnit 5 – Parameterized Tests
JUnit 5 is pretty impressive, particularly when you look under the covers, at the extension model and the architecture. But…
Read More » -
Core Java
Importance of given-when-then in unit tests and TDD
Recently, I’ve been writing rather about more advanced concepts related to automatic testing (mostly related to Spock). However, conducting my…
Read More » -
Core Java
Expected Exception Rule and Mocking Static Methods – JUnit
Today I was asked to consume a RESTful service so I started implementing it following Robert Cecil Martin’s rules for…
Read More » -
Core Java
Data driven testing with Junit & easytest
In this article we are going to see how can we make a Data Driven testing with Junit. For this…
Read More »