Hamcrest
-
Core Java
Verifying DateTime and Date with Hamcrest
Since I started diving into automated testing and practicing TDD, verification of date values was pain. Luckily there is nice…
Read More » -
Core Java
Advanced Creation of Hamcrest Matchers
Intro Last time, I went over what a Hamcrest Matcher was, how it’s used, and how to make one. In…
Read More » -
Core Java
Redesigning Hamcrest
I’ve done a few posts on the Hamcrest library, and I really do enjoy using it, but there are a…
Read More » -
Enterprise Java
HOW-TO: Test dependencies in a Maven project (JUnit, Mockito, Hamcrest, AssertJ)
JUnit itself is not enough for most of today’s Java projects. You also need a mocking library, maybe something else.…
Read More » -
Core Java
Using Matchers in Tests
Gone are the days when we were forced to write way too many assertion lines in our testing code. There…
Read More » -
Enterprise Java
Hamcrest Matchers, Guava Predicate and Builder design pattern
Often, while coding we have to deal with some POJO objects that have dozens of fields in them. Many times…
Read More » -
Enterprise Java
Hamcrest Containing Matchers
The Hamcrest 1.3 Javadoc documentation for the Matchers class adds more documentation for several of that class’s methods than were…
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 » -
Enterprise Java
Moving Beyond Core Hamcrest in JUnit
In the post Improving On assertEquals with JUnit and Hamcrest I introduced use of Hamcrest with JUnit. I then looked…
Read More »
- 1
- 2