[TEST] assign flags in SimpleQueryStringBuilderTest

This commit is contained in:
javanna 2015-07-01 19:05:05 +02:00 committed by Luca Cavanna
parent 24b2614b36
commit 4b071f8d2c
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class SimpleQueryStringBuilderTest extends BaseQueryTestCase<SimpleQueryS
Set<SimpleQueryStringFlag> flagSet = new HashSet<>();
int size = randomIntBetween(0, SimpleQueryStringFlag.values().length);
for (int i = 0; i < size; i++) {
randomFrom(SimpleQueryStringFlag.values());
flagSet.add(randomFrom(SimpleQueryStringFlag.values()));
}
if (flagSet.size() > 0) {
result.flags(flagSet.toArray(new SimpleQueryStringFlag[flagSet.size()]));