We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
giveMeBuilder#size methods not applied to String class.
giveMeBuilder#size
For example, folowing code produces arbitrary size of string.
data class A(val a: String) val value = fixtureMonkey.giveMeBuilder<A>() .size(A::a, 10) .sample() println(value.a.length)
If would be nice to produce string with the size i provided.
Yes
The text was updated successfully, but these errors were encountered:
I think this is a good feature to keep consistency with the @Size annotation.
@Size
@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) @Documented @Constraint(validatedBy={}) public @interface Size The annotated element size must be between the specified boundaries (included). Supported types are: CharSequence (length of character sequence is evaluated) Collection (collection size is evaluated) Map (map size is evaluated) Array (array length is evaluated) null elements are considered valid.
It would be nice to work on the CharSequence interface if we go further.
CharSequence
Sorry, something went wrong.
No branches or pull requests
Describe the feature you request
giveMeBuilder#size
methods not applied to String class.For example, folowing code produces arbitrary size of string.
(Optional): Suggest A Solution
If would be nice to produce string with the size i provided.
If the feature request is approved, would you be willing to submit a PR?
Yes
The text was updated successfully, but these errors were encountered: