recipe 22.9. Use Complex Assertions in a Test Case
22.9.1. Problem
You need to do complex pattern matching in your test
case.
22.9.2. Solution
Use the matching functions defined by the
Hamcrest library to create complex assertions.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial