Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
CharacterArbitrary |
all()
Allow all unicode chars to show up in generated values.
|
CharacterArbitrary |
ascii()
Allow all ascii chars to show up in generated values.
|
CharacterArbitrary |
digit()
Allow all numeric chars (digits) to show up in generated values.
|
CharacterArbitrary |
range(char min,
char max)
Allow all chars within
min (included) and max (included) to show up in generated values. |
CharacterArbitrary |
whitespace()
Allow all whitespace chars to show up in generated values.
|
CharacterArbitrary |
with(Arbitrary<java.lang.Character> characterArbitrary)
Allow all chars generated by
characterArbitrary . |
CharacterArbitrary |
with(char... allowedChars)
Allow all chars in
allowedChars show up in generated values. |
CharacterArbitrary |
with(java.lang.CharSequence allowedChars)
Allow all chars in
allowedChars show up in generated values. |
allValues, array, asGeneric, collect, dontShrink, edgeCases, exhaustive, exhaustive, filter, fixGenSize, flatMap, forEachValue, generator, ignoreException, injectDuplicates, injectNull, isUnique, iterator, list, map, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, unique
CharacterArbitrary all()
@API(status=MAINTAINED, since="1.1.3") CharacterArbitrary with(char... allowedChars)
allowedChars
show up in generated values.
Adds to all already allowed chars.@API(status=EXPERIMENTAL, since="1.3.0") CharacterArbitrary with(Arbitrary<java.lang.Character> characterArbitrary)
characterArbitrary
.
Adds to all already allowed chars.@API(status=MAINTAINED, since="1.2.1") CharacterArbitrary with(java.lang.CharSequence allowedChars)
allowedChars
show up in generated values.
Adds to all already allowed chars.@API(status=MAINTAINED, since="1.1.3") CharacterArbitrary range(char min, char max)
min
(included) and max
(included) to show up in generated values.
Adds to all already allowed chars.CharacterArbitrary ascii()
CharacterArbitrary digit()
@API(status=MAINTAINED, since="1.1.3") CharacterArbitrary whitespace()