Skip to Main Content
MOCKITO COOKBOOK
book

MOCKITO COOKBOOK

by Marcin Grzejszczak
June 2014
Intermediate to advanced content levelIntermediate to advanced
284 pages
6h 9m
English
Packt Publishing
Content preview from MOCKITO COOKBOOK

Using AssertJ for assertions

In this recipe, we will add AssertJ to your classpath (or check if it's already there) and take a look at a test that should show the concept that lies behind the AssertJ library.

Getting ready

First, let's check the differences between the different AssertJ JAR files:

  • assertj-core: This file contains the vast majority of assertions (there is rarely a need to have any additional dependencies)
  • assertj-guava: This file contains additional assertions for some of the Guava library related classes
  • assertj-neo4j: This file contains additional assertions for the Neo4j graph database related classes
  • assertj-joda-time: This file contains additional assertions for the JodaTime library related classes
  • assertj-assertions-generator-maven-plugin ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mockito Essentials

Mockito Essentials

Sujoy Acharya
Mockito for Spring

Mockito for Spring

Sujoy Acharya
SPRING COOKBOOK

SPRING COOKBOOK

Jerome Jaglale, Murat Yilmaz

Publisher Resources

ISBN: 9781783982745Supplemental Content