title: Extending Junit ParentRunner Class to filter test methods
body: <p>I have a requirement of reading a text file which contains list of all the testmethods in yes/no value and to pick the "yes" marked testmethods only for a  TestCase Class,and to execute in Junit.</p>
  
  <p>So I have written a script to read the file and to group it in a <strong>map&lt;</strong> TestCaseName,ArrayList_ofEnabledTestMethods <strong>></strong> . To run that I found one option is to use <strong>Assume.assumeTrue()</strong>.</p>
  
  <p>But I wanted to try some otherway...  instead of writting extra lines before each test methods , So I tried to write a custom runner (<strong>ABCSuite</strong> which extends <strong>ParentRunner</strong>) and planned to use it in my TestSuite file like below :</p>
  
  <pre><code>import org.junit.runner.RunWith;
  import org.junit.runners.Suite;
  
  @RunWith(ABCSuite.class)
  @Suite.SuiteClasses({TestCalc.class})
  public class BatTest{
  
  }
  </code></pre>
  
  <p>Here TestCalc.class contains all the test methods some of which is marked "yes" in the earlier mentioned text file .</p>
  
  <p>Please let me know how I can use of extending the <strong>ParentRunner class/Junit Libraries</strong>  to achieve this  . If any good tutorial is there or any link which addressed this before please.. share</p>