Package net.jqwik.api.arbitraries
Interface StringArbitrary
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary
Arbitrary.ArbitraryFacade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description StringArbitrary
all()
Allow all unicode chars even noncharacters and private use characters but only in plane 0 (aka Basic Multilingual Plane)StringArbitrary
alpha()
Allow all alpha chars to show up in generated strings.StringArbitrary
ascii()
Allow all ascii chars to show up in generated strings.StringArbitrary
numeric()
Allow all numeric chars (digits) to show up in generated strings.default StringArbitrary
ofLength(int length)
Fix the length tolength
of generated strings.StringArbitrary
ofMaxLength(int maxLength)
Set the maximum allowed lengthmaxLength
(included) of generated strings.StringArbitrary
ofMinLength(int minLength)
Set the minimum allowed lengthmixLength
(included) of generated strings.StringArbitrary
whitespace()
Allow all chars that will returntrue
forCharacter.isWhitespace(char)
.StringArbitrary
withCharRange(char from, char to)
Allow all chars withinfrom
(included) andto
(included) to show up in generated strings.StringArbitrary
withChars(char... chars)
Allow all chars inchars
to show up in generated strings.StringArbitrary
withChars(java.lang.CharSequence chars)
Allow all chars inchars
to show up in generated strings.StringArbitrary
withChars(Arbitrary<java.lang.Character> characterArbitrary)
Deprecated.-
Methods inherited from interface net.jqwik.api.Arbitrary
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, tuple5, unique
-
-
-
-
Method Detail
-
ofMaxLength
StringArbitrary ofMaxLength(int maxLength)
Set the maximum allowed lengthmaxLength
(included) of generated strings.
-
ofMinLength
StringArbitrary ofMinLength(int minLength)
Set the minimum allowed lengthmixLength
(included) of generated strings.
-
ofLength
default StringArbitrary ofLength(int length)
Fix the length tolength
of generated strings.
-
withChars
StringArbitrary withChars(char... chars)
Allow all chars inchars
to show up in generated strings. Can be combined with other methods that allow chars.
-
withChars
@API(status=MAINTAINED, since="1.2.1") StringArbitrary withChars(java.lang.CharSequence chars)
Allow all chars inchars
to show up in generated strings. Can be combined with other methods that allow chars.
-
withChars
@API(status=DEPRECATED, since="1.3.8") @Deprecated StringArbitrary withChars(Arbitrary<java.lang.Character> characterArbitrary)
Deprecated.Allow all chars generated bycharacterArbitrary
. Can be combined with other methods that allow chars.
-
withCharRange
StringArbitrary withCharRange(char from, char to)
Allow all chars withinfrom
(included) andto
(included) to show up in generated strings. Can be combined with other methods that allow chars.
-
ascii
StringArbitrary ascii()
Allow all ascii chars to show up in generated strings. Can be combined with other methods that allow chars.
-
alpha
StringArbitrary alpha()
Allow all alpha chars to show up in generated strings. Can be combined with other methods that allow chars.
-
numeric
StringArbitrary numeric()
Allow all numeric chars (digits) to show up in generated strings. Can be combined with other methods that allow chars.
-
whitespace
StringArbitrary whitespace()
Allow all chars that will returntrue
forCharacter.isWhitespace(char)
. Can be combined with other methods that allow chars.
-
all
StringArbitrary all()
Allow all unicode chars even noncharacters and private use characters but only in plane 0 (aka Basic Multilingual Plane)
-
-