@SuppressWarnings("unchecked")
    private Class<junit.framework.TestCase> getTestCase(ClassLoader cl) throws ClassNotFoundException {
        Class<junit.framework.TestCase> testCaseClass = (Class<TestCase>) cl.loadClass("junit.framework.TestCase");
        return testCaseClass;
    }
@ SuppressWarnings ( "unchecked" ) private Class < junit . framework . TestCase > getTestCase ( ClassLoader cl ) throws ClassNotFoundException { Class < junit . framework . TestCase > testCaseClass = ( Class < TestCase > ) cl . loadClass ( "junit.framework.TestCase" ) ; return testCaseClass ; }
Done this way to avoid dependency?