-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
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
Allow configuration annotations from a generator used with @From onto the parameter #279
Comments
@SimY4 Thanks for your interest in junit-quickcheck. You're right -- when you say Which path would better address your need? Maybe there are other options I haven't considered? |
@SimY4 Checking in to see how you'd like to proceed with this issue. Let me know....thanks! |
@pholser Hi, sorry I missed your message. I tried to approach this issue myself but failed to find a solution. Currently, I'm using workaround where my generators configuring themselves at the moment of creation:
|
@SimY4 Thanks for getting back to me. I'm considering going ahead and scraping config annotations from generators from |
Consider a generator like this:
What's interesting about it is that by calling
gen().make(MyClassFieldGenerator.class)
I can put my configuration annotation on generator class itself to configure defaults on it without calling tomyClassFieldGenerator.configure(myAnnotation);
explicitly.But I can't do the same for Generator that is referred from a Property method itself:
In practice, this means that I have to instantiate default annotation instance myself if it's not provided by the framework which looks like something that could be easily avoided.
The text was updated successfully, but these errors were encountered: