Exclude individual test from ‘before’ method in JUnit
You can do this with a TestRule. You mark the test that you want to skip the before with an annotation of some description, and then, in the apply method in the TestRule, you can test for that annotation and do what you want, something like: public Statement apply(final Statement base, final Description description) { … Read more