Lising public class methods with creating a instance of it
<p>The Test Framework I'm using has a rather strange way of adding tests to a Test Suite, as follows:</p>

<pre><code>public TestSuiteAll() {
    super("TestSuiteAll")

    this.addTest(new TestTypeOld("TEST_EXECUTION"));
    this.addTest(new TestTypeOld("TEST_COMPLETION_1"));
    this.addTest(new TestTypeOld("TEST_COMPLETION_2"));

    this.addTest(new TestTypeNew("TEST_NEW"));
}
</code></pre>

<p>where "TEST_EXECUTION" is for example, the name of the function in the TestTypeOld class to call. </p>

<p>I really don't like this design but I'm stuck with it. How can I list all the functions in TestTypeOld so that I can add all of them? </p>

<p>I've see some examples where something like this is done:</p>

<pre><code>TestTypeOld testTypeOld = new TestTypeOld("");
Class testTypeOldClass = testTypeOld.getClass();
Method[] methods = testTypeOldClass.getMethods();
</code></pre>

<p>but this seems really long winded. Is there another way of doing this where I don't need to create a instance of TestTypeOld.</p>
