-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Customizing property with private/protected setter #94
Comments
This is somewhat linked to issue #90 There are effectively 2 issues happening here. Firstly, there's some validation that occurs that won't let you define that property override. It does this because Secondly, if I remove the validation, the object will be created but the value will not be overridden as currently the overrides only work on public setters or constructor parameters. Thinking about the other open issue (#90) which relates to latent vars I realised that there's no way to easily ignore property setting; and likewise customise properties that would otherwise not be set which is what you want here. This is something I'm currently looking at. |
Consider we have a class to create a fixture like this:
when we do:
will throw an exception like this:
because the proeprty
name
doesn't provide public setter.How do I customize that field?
The text was updated successfully, but these errors were encountered: