mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
Improve message of StressTestFailedException.NotAllMessagesReceivedException
This commit is contained in:
parent
b3ed9bc29f
commit
488e20476e
2 changed files with 55 additions and 3 deletions
|
@ -27,4 +27,13 @@ public class BooleansUtils {
|
|||
return false;
|
||||
}
|
||||
|
||||
public static int numberOf(boolean[] array, boolean target) {
|
||||
int res = 0;
|
||||
for (boolean b : array) {
|
||||
if (b == target) {
|
||||
res++;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue