*
* @param targetClass
* @return The output of the test referred to by this class.
*/
private String executeCompiledTest(Class<? extends BaseIntegrationTestCase> targetClass) {
BaseIntegrationTestCase t = null;
try {
t = targetClass.getConstructor().newInstance();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
} catch (NoSuchMethodException e) {
e.printStackTrace();
}
assertNotNull(t);
return t.runTest();
}