title: JUnit4 run all tests in a specific package using a testsuite
body: <p>Is this possible in JUnit4?</p>
  
  <p>In JUnit3, I would do the following:</p>
  
  <pre><code>public class MyTestSuite {
  
    public static Test suite() throws Exception {
       doBeforeActions();
  
       try {
          TestSuite testSuite = new TestSuite();
          for(Class clazz : getAllClassesInPackage("com.mypackage")){
              testSuite.addTestSuite(clazz);
          }
          return testSuite;
       } finally {
          doAfterActions
       }
    }
  
  ...
  
  }
  </code></pre>