In most of my unit-tests on a component with JUnit, I encounter the same issue: I want to run a first test on the component with no setup to check that it initializes correctly, then I want all my other tests to be done on the component setup in a given way.
I usually end-up with a method that I call at the beginning of all my tests but one, which is ugly and error prone. I could also create two different classes, with one containing only one test, but I don't think that is the most convenient solution.
I tried searching around and found this answer: Exclude individual test from 'before' method in JUnit, but as far as I could find, the base.evaluate() call will always contain the @Before statement.
Is there a better way to do this first unSetup test?