title: Config based enable/disable JUnit Test
body: <p>What is the best way to enable/disable a junit test based on a Config parameter? Say I have a Config class which dictates some state of the software that makes a given set of tests invalid.</p>
  
  <p>I could put the body of the test in an if statement within the test method, e.g.:</p>
  
  <pre><code>@Test
  public void someTest() {
     if(Config.shouldIRunTheTests()) {
        //do the actual test
     }
  }
  </code></pre>
  
  <p>This seems bad because I actually get test passes for these cases when I actually want these tests skipped.
  Would like something like:</p>
  
  <pre><code>@Test[Config.shouldIRunTheTests()] 
  public void someTest() {
      //do the actual test
  }
  </code></pre>
  
  <p>Is this possible?</p>