title: Run Junit @Test that ignores @Before/@After
body: <p>Is it possible to run a JUnit <code>@Test</code> method in a class that has a method annotated with <code>@Before</code>, but to ignore the <code>@Before</code> method only for this test? </p>
  
  <p>Edit: <strong>I am interested if JUnit supports this functionality</strong>, not workarounds. I am aware of workarounds like moving the test(s) in another class or removing the annotation and manually calling <code>setUp()</code> in each test method.</p>
  
  <p>Suppose in a class there are 30 tests, and for 29 of them <code>@Before</code> really simplifies the testing initialization, but for one (or more than one) of them is useless/it complicates things.</p>
  
  <pre><code>public class MyTestClass {
  
      @Before
      public void setUp() {
          //setup logic
      }
  
      @Test
      public void test1() {
          //[...]
      }
  
      @Test
      public void test2() {
          //[...]
      }
  
      //more tests here
  
      @Test(ignoreBefore = true, ignoreAfter = true //false by default)
      //something equivalent to this
      public void test20() {
          //[...]
      }
  
  }
  </code></pre>