Category Archives: JUnitRules

JUnit rules – executing additional verification when exceptions are thrown

In this post I will show you quickly how handy JUnit rules are if you need to solve the following challenge A method catches an exception and has to perform some extra tasks before rethrowing or throwing a wrapper exception. Calls to the extra tasks and the thrown exception should be verified by a unit test. This means you have some […]

 

1
Kudos
Don't
move!

Read more