1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 21:42:07 +01:00

Sinttest: Always record why test class could not be constructed

This commit is contained in:
Florian Schmaus 2018-12-27 14:40:25 +01:00
parent e4c31541e0
commit 77f466560b

View file

@ -293,14 +293,10 @@ public class SmackIntegrationTestFramework {
}
catch (InvocationTargetException e) {
Throwable cause = e.getCause();
if (cause instanceof TestNotPossibleException) {
throwFatalException(cause);
testRunResult.impossibleTestClasses.put(testClass, cause.getMessage());
testRunResult.numberOfPossibleTests.addAndGet(-detectedTestMethodsCount);
}
else {
throwFatalException(cause);
LOGGER.log(Level.WARNING, "Could not construct test class", e);
}
continue;
}
catch (InstantiationException | IllegalAccessException | IllegalArgumentException e) {