Skip to content
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

Pass properly updated context to a ContextAwareRandomizer #432

Conversation

unconditional
Copy link
Contributor

The stack of the context passed to any ContextAwareRandomizer via setRandomizerContext() does not have the actual currently processed field on top, but the enclosing/parent field instead.
This makes it impossible in a randomizer to acquire and use the current field metadata to generate a random value (e.g. based on attributes of a custom annotation on it).

fmbenhassine and others added 2 commits October 11, 2020 23:15
These static factory methods were inspired by
Effective Java Item 1, but do not provide any
added value in this context.

This commit should have been part of 735b245
@fmbenhassine
Copy link
Member

LGTM. Rebased and merged as 729420b. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants