Generates random boolean request value for aBoolean() (#1581)

Fixes gh-1410
This commit is contained in:
bono007
2020-12-10 17:25:35 -06:00
committed by GitHub
parent 346ecc48a8
commit ec909350e9
2 changed files with 44 additions and 1 deletions

View File

@@ -101,7 +101,8 @@ abstract class PatternValueDslProperty<T extends DslProperty>
@Override
public T aBoolean() {
return createAndValidateProperty(RegexPatterns.TRUE_OR_FALSE);
return createAndValidateProperty(RegexPatterns.TRUE_OR_FALSE,
this.random.nextBoolean());
}
@Override