Annotation Type RandomCapitalizationSource
-
@Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @Documented @ArgumentsSource(RandomCapitalizationArgumentsProvider.class) public @interface RandomCapitalizationSource
RandomCapitalizationSourceis anArgumentsSourcethat provides values having a random capitalization of a given input for use in parameterized tests.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intcountThe desired number of randomly capitalized values to provide.RandomCapitalizationSource.TypetypeThe type of capitalized values to provide.
-
-
-
Element Detail
-
value
String value
The value which will be randomly capitalized.- Returns:
- the input value
-
-
-
count
int count
The 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
RandomCapitalizationSource.Type 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:
KiwiStrings2.standardCaseVariants(String)
- Default:
- org.kiwiproject.beta.test.junit.jupiter.params.provider.RandomCapitalizationSource.Type.RANDOM
-
-