gerrit/gerrit-gwtexpui
David Pursehouse edb30aea66 Refactor unit tests to use ExpectedException
Instead of catching the expected exception and calling fail() when
the exception is not raised, use the ExpectedException.expect() rule
to confirm that the expected exception is raised.

In cases where a specific exception message is expected, instead of
catching the exception and then asserting on the value returned from
its getMessage(), use the ExpectedException.expectMessage() rule.

Change-Id: I15a61bbed33e11f77c5d0fac02374630f540a68e
2015-05-28 18:49:03 +09:00
..
2014-10-22 09:40:47 +02:00