title: How can I run (or change the order of) specific test-methods in a JUnit test class?
body: <p>I am fairly new to Java. I have constructed a single JUnit test class and inside this file are a number of test methods.  When I run this class (in NetBeans) it runs each test method in the class in order.</p>
  
  <p>Question 1: How can I run only a specific sub-set of the test methods in this class?
  (Potential answer: Write @Ignore above @Test for the tests I wish to ignore. However, if I want to indicate which test methods I want to run rather than those I want to ignore, is there a more convenient way of doing this?)</p>
  
  <p>Question 2: Is there an easy way to change the order in which the various test methods are run?</p>
  
  <p>Thanks.</p>