mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
[sinttest] Throw IllegalArgumentException if no tests have been selected
This commit is contained in:
parent
3e2d01ce63
commit
b2331aaacf
1 changed files with 5 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue