Annotation Interface RandomCapitalizationSource
@Target({ANNOTATION_TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@ArgumentsSource(RandomCapitalizationArgumentsProvider.class)
public @interface RandomCapitalizationSource
RandomCapitalizationSource is an ArgumentsSource that provides values having random capitalization
of a given input for use in parameterized tests.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of capitalization to provide. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintThe desired number of randomly capitalized values to provide.The type of capitalized values to provide.
-
Element Details
-
value
String valueThe value which will be randomly capitalized.- Returns:
- the input value
-
-
-
count
int countThe desired number of randomly capitalized values to provide.The actual number provided may be less than this value if it is more than 2^N, where N is the length of the input value. See
KiwiStrings2.randomCaseVariants(String, int)for details on this mathematical limit.- Returns:
- the number of desired values
- Default:
- 3
-
type
The type of capitalized values to provide.Note that when
RandomCapitalizationSource.Type.STANDARDis chosen, the maximum number of values is three.- Returns:
- the type
- See Also:
- Default:
- RANDOM
-