Tuesday
Oct292013

Asserting Exceptions With Junit Rules: Custom Matchers

In my previous post, I demonstrated how to use JUnit’s Rules feature to assert expected assertions in your unit tests. In this post, I’ll show you how to write custom Matchers that will help give you more power when inspecting your exceptions.

Maven Dependencies

This demo uses the following Maven dependencies:

Custom Exception

We’ll start with a custom exception which does little more than remember the error code at the time the exception was thrown.

Our Exception Matcher

When we pass our Matcher to JUnit’s ExpectedException instance, we’re given a chance to match the exception itself, not the message. In this case, we’re going to write a Matcher that makes sure that the exception’s error code was as expected. We can only match on an instance of our _ ErrorCodeException_, so we’ll save some effort and extend TypeSafeMatcher.

From the documentation:

TypeSafeMatcher : Convenient base class for Matchers that require a non-null value of a specific type. This simply implements the null check, checks the type and then casts.

Example Tests With ExpectedException and Our Custom Matcher

With the components in place, let’s start testing. Of course, if you only have one or two error test cases, then a custom Matcher might take more work than it saves, but you end up with code that any developer should be able to read, which might reduce maintenance costs.

Asserting Exceptions The Old Way

To demonstrate the benefits of using custom Matchers with JUnit’s ExcpectedException, here are the alternatives that you’re probably familiar with, with inline comments explaining why they’re not ideal.

PrintView Printer Friendly Version

EmailEmail Article to Friend

References (173)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Response: unsere Xovilichter
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: xovilichter
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: mobile ui design
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: Jeff Halevy
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: related web site
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: Tonye Cole
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: Luke Weil New York
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: google.com
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: Vigrax
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: GoPro Pole
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Pelatihan SDM is a network marketing and training information or training an employee who has worked with many consulting firms and training institutions.
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: find out here
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: GoPro Pole
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: watches
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: rolls royce key
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: USMC Boots
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: free Lead system
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: GoPro Remote
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: GoPro Selfie Stick
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: 10 sports bar
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    I conceive this web site has got some very excellent info for everyone : D.
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: GoPro Alternative
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: www.coursera.org
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: fotoshows.com.br
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: chernobyl86.ru
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: pubmed email
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: natural-foto.com
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: agen casino
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: Printed Banners
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: lukepo.com
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: agen casino online
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: agen bola
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: kruszarnia Łódź
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: gruz Łódź
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: agen bola
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: gruz Łódź
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: agen bola
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: gruz Łódź
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: vegas338
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: kruszarnia Kraków
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: poker indonesia
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: agen tembak ikan
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: agen bola
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: 32gb micro SD card
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: repeated playlist
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: ilciuc.com
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: bola euro 2016
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: jasa seo jakarta
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: bola
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: www.jok.md
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: visit
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: Link Website
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: http://gagaam.com/
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: Nike Air presto
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: GoPro Stick
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: Go Pro Remote
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: this link
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: hosting selections
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: site immensely
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: enterprise seo
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: rehab cost
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: essay helper
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: energy efficient
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: sepak Bola new
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: yeezy shoes
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: Iproc.ru
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: insert your data
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: webmaster
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: www.Lawdepot.com
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: Aletniq
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: cerpen sex
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: healthy Eating
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: pokerqiu
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: uedcool.com
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: konjac
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Response: four ebay sites
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom Matchers
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom
  • Response
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom
  • Response
    Response: Agen Qq
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom
  • Response
    Response: konjac
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom
  • Response
    Response: porn movies
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom
  • Response
    Response: Insert your Data
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom
  • Response
    Response: Togel singapore
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom
  • Response
    Response: Http://Resco-sa.Cl
    Blake Caldwell - /dev/blake/blog - Asserting Exceptions With Junit Rules: Custom

Reader Comments (1)

Awesome article, actually I was looking a website like this, I found all information here. You’re all article are gorgeous, I am very impressed. Thanks for sharing with us and keep posting.

June 16, 2017 | Unregistered CommenterHarvy

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
« Asserting Exceptions With JUnit Rules: IsEqual Matcher | Main | Asserting Exception Messages With JUnit Rules »