Request (String suiteName, Class<?>[] classes) { Request allClasses; try { Class.forName("org.junit.internal.requests.ClassesRequest"); allClasses = JUnit4ClassesRequestBuilder.getClassesRequest(suiteName, classes); } catch (ClassNotFoundException e1) { allClasses = JUnit45ClassesRequestBuilder.getClassesRequest(suiteName, classes); } return allClasses; }