When trying to set a value on a variable of type Object an exception is thrown. E.g.:
java.lang.IllegalArgumentException: The value is not of the same type as the property.
parent node type : com.example.bug.ObjectTest node name: object, node type: java.lang.Object, value type: java.lang.String
Describe the bug
When trying to set a value on a variable of type
Object
an exception is thrown. E.g.:This issue was introduced on 1.0.9
Your environment
Steps to reproduce
https://github.com/esfomeado/fixture-monkey-bug/blob/master/src/test/java/com/example/bug/FixtureMonkeyTest.java#L123
Expected behaviour
I should be able to set a string in a object type like in previous versions.
Actual behaviour
It's not possible to set a string on a object type.