mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Sinttest: Always record why test class could not be constructed
This commit is contained in:
parent
e4c31541e0
commit
77f466560b
1 changed files with 4 additions and 8 deletions
|
@ -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.impossibleTestClasses.put(testClass, cause.getMessage());
|
||||||
testRunResult.numberOfPossibleTests.addAndGet(-detectedTestMethodsCount);
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue