1package test.priority; 2 3import org.testng.annotations.Test; 4 5public class Priority2SampleTest { 6 @Test(priority = 1) 7 public void cOne() { 8 } 9 10 @Test(priority = 2) 11 public void bTwo() { 12 } 13 14 @Test(priority = 3) 15 public void aThree() { 16 } 17} 18