Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
CharacterArbitrary |
all()
Allow all unicode chars to show up in generated values.
|
CharacterArbitrary |
alpha()
Allow all alpha chars to show up in generated strings.
|
CharacterArbitrary |
ascii()
Allow all ascii chars to show up in generated values.
|
CharacterArbitrary |
numeric()
Allow all numeric chars 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(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, edgeCases, edgeCases, exhaustive, exhaustive, filter, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, ignoreException, ignoreExceptions, ignoreExceptions, injectDuplicates, injectNull, isGeneratorMemoizable, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
CharacterArbitrary all()
Resets previous settings.
@API(status=MAINTAINED, since="1.1.3") CharacterArbitrary with(char... allowedChars)
allowedChars
show up in generated values.
Adds to all already allowed chars.
allowedChars
- chars allowed@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.
allowedChars
- as String or other CharSequence@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.
min
- min char valuemax
- max char valueCharacterArbitrary ascii()
Adds to all already allowed chars.
@API(status=MAINTAINED, since="1.5.3") CharacterArbitrary numeric()
Adds to all already allowed chars.
@API(status=MAINTAINED, since="1.1.3") CharacterArbitrary whitespace()
Adds to all already allowed chars.
@API(status=MAINTAINED, since="1.5.3") CharacterArbitrary alpha()
Adds to all already allowed chars.