1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +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) { catch (InvocationTargetException e) {
Throwable cause = e.getCause(); Throwable cause = e.getCause();
if (cause instanceof TestNotPossibleException) { throwFatalException(cause);
testRunResult.impossibleTestClasses.put(testClass, cause.getMessage());
testRunResult.numberOfPossibleTests.addAndGet(-detectedTestMethodsCount); testRunResult.impossibleTestClasses.put(testClass, cause.getMessage());
} testRunResult.numberOfPossibleTests.addAndGet(-detectedTestMethodsCount);
else {
throwFatalException(cause);
LOGGER.log(Level.WARNING, "Could not construct test class", e);
}
continue; continue;
} }
catch (InstantiationException | IllegalAccessException | IllegalArgumentException e) { catch (InstantiationException | IllegalAccessException | IllegalArgumentException e) {