[TEST] assign flags in SimpleQueryStringBuilderTest
This commit is contained in:
parent
24b2614b36
commit
4b071f8d2c
|
@ -66,7 +66,7 @@ public class SimpleQueryStringBuilderTest extends BaseQueryTestCase<SimpleQueryS
|
||||||
Set<SimpleQueryStringFlag> flagSet = new HashSet<>();
|
Set<SimpleQueryStringFlag> flagSet = new HashSet<>();
|
||||||
int size = randomIntBetween(0, SimpleQueryStringFlag.values().length);
|
int size = randomIntBetween(0, SimpleQueryStringFlag.values().length);
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
randomFrom(SimpleQueryStringFlag.values());
|
flagSet.add(randomFrom(SimpleQueryStringFlag.values()));
|
||||||
}
|
}
|
||||||
if (flagSet.size() > 0) {
|
if (flagSet.size() > 0) {
|
||||||
result.flags(flagSet.toArray(new SimpleQueryStringFlag[flagSet.size()]));
|
result.flags(flagSet.toArray(new SimpleQueryStringFlag[flagSet.size()]));
|
||||||
|
|
Loading…
Reference in New Issue