dropwizard/dropwizard — pull request #760 by jangalinski (2014-10-25 08:31:20+00:00)
Title: Make DropwizardAppRule extend ExternalResource

ExternalResource is a junit rule that standardizes the try-before-apply-finally-after pattern already used in the original code implmenting TestRule.

By using the ExternalResource, everything works as before, but you can now use before() and after() hooks as extension points.
In my case, I would run flyway db initialization in my own rule extending DwAppRule by using super.before();.