-
Notifications
You must be signed in to change notification settings - Fork 88
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
Child class non-empty constructors not found #113
Comments
Hum, I thing this is due to missing field rule on a |
Actually the error still stands. Even with rules matching child constructor. |
Hello @tikal and developers! I guess I found a way to fix it. The
The fixture:
But, when I changed the line
Works fine when a provided value is null or not null. Probably this code works finer, but first we need to get constructor arguments types:
|
I was using fixtures with a class with final fields and constructors only, without issue.
I had to change this class to an abstract class eventually, but fixtures were not working on the subclasses, throwing
Could not find constructor with args [] on class
on the child class.While there was no need for an empty constructor on the parent class.
Workaround: add an empty constructor on the parent class, override it with a private constructor on the child class.
The text was updated successfully, but these errors were encountered: