1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-10-18 20:25:59 +02:00

[sinttest] Throw IllegalArgumentException if no tests have been selected

This commit is contained in:
Florian Schmaus 2024-06-01 12:13:33 +02:00
parent 3e2d01ce63
commit b2331aaacf

View file

@ -527,6 +527,11 @@ public class SmackIntegrationTestFramework {
}
sb.append('\n');
}
if (numberOfAvailableTests == 0) {
throw new IllegalArgumentException("No integration tests selected.");
}
sb.append("Available tests: ").append(numberOfAvailableTests);
if (!testRunResult.disabledTestClasses.isEmpty() || !testRunResult.disabledTests.isEmpty()) {
sb.append(" (Disabled ").append(testRunResult.disabledTestClasses.size()).append(" classes")