You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this with Kotlin data classes, they don't have default constructors. Since I can use _construct this shouldn't be a problem. However, when trying to create a class with a script ${sequence.number}, Beanmother gives an exception that my class doesn't have a default constructor.
If I got it correctly, the problem is that handleScriptFixtureValue(fixtureMap); only runs after the object is already constructed, inside _bear methods.
I'm using this with Kotlin data classes, they don't have default constructors. Since I can use
_construct
this shouldn't be a problem. However, when trying to create a class with a script${sequence.number}
, Beanmother gives an exception that my class doesn't have a default constructor.This works:
This doesn't:
Is this the correct behavior? Shouldn't scripts work anywhere?
The text was updated successfully, but these errors were encountered: