Book Image

Mockito for Spring

By : Sujoy Acharya
Book Image

Mockito for Spring

By: Sujoy Acharya

Overview of this book

Table of Contents (12 chapters)
Mockito for Spring
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


This JUnit refresher chapter covered both basic and advanced applications of JUnit. We also covered annotation-based JUnit testing, assertion, the @RunWith annotation, exception handling, setting up Eclipse for running JUnit tests, matchers, assertThat, and the custom lessThanOrEqual() matcher.

Then the Mockito framework was described in depth, and technical examples were provided to demonstrate the capability of Mockito.

The next chapter focuses on getting the reader quickly started with Spring Framework unit testing. It provides an overview of Spring integration testing and explores the test APIs.