title: How to run specific method before of only specific test cases using TestNG?
body: <p>In my test class, suppose I've 15 test cases. Out of 15, I require common test data for only 5 test cases. Hence I want to write a method, which will create test data, but that method will execute before any of those 5 tests are run. </p>
  
  <p>I know <code>@BeforClass</code> - which will run before any of tests from the class is run and <code>@BeforeMethod</code> - which will run before every test in the class.</p>
  
  <p>I do not want to use <code>@BeforeClass</code> to create test data for 5 test cases out of 15 because if I want to debug a test which does not belong to those 5 test cases still it will create data, which is not required for my current test, also it will increase execution time.</p>
  
  <p>Is there any way with TestNG, I can run specific method before some of the tests are executed(Without using testng.xml)  </p>