title: TestNG method "enabled" programmatically
body: <p>Is there a way to set the "enabled" attribute for a @Test programmatically?</p>
  
  <p>Something like defining a boolean variable in the @BeforeClass and check it via enabled?</p>
  
  <p>The use case is this: The same tester tests several classes, but not all classes implement all methods, so the missing methods should not be skipped. </p>
  
  <p>The tester would be something like</p>
  
  <pre><code>public abstract class MegaTester {
  
      @Test
      public void test1() {
      ...
      }
  
       @Test
       public void test2() {
       ...
       }
  
       @Test
       public void test3() {
       ...
       }
   }
  
   public class ATest extends MegaTester {
       @Test
       public void test1() {
       // my own implementation of test1
       }
  
       // test2 from MegaTester will be called here
  
       // I don't implement test3, but how do I indicate I don't want it ran from MegaTester?
   }
  </code></pre>
  
  <p>Thanks</p>