Closed praveenfun2 closed 8 months ago
Probably the line below needs to be changed.
property -> isAssignable(value.getClass(), Types.getActualType(property.getType()))
@praveenfun2 Thank you for reporting an issue! Yes you're right. It is my mistake it should be fixed in this commit If you don't mind, could you make a PR for dealing with this issue?
Hi seongahjo, it'll be difficult for me to make any changes to this repo as our organization uses gitlab & I can't login to github via my personal account. I have raised this issue via my personal laptop & it doesn't have the developer environment setup.
Oh I see, It'll be fixed in 1.0.8.
If you are in a hurry, you can do the following.
set("abc", Values.just(subclass))
I'll let you know when it's published.
Would it work for setLazy ? I just tried but it doesn't seem to work.
@praveenfun2 In this case, you can use the API like as below.
set(
YourExpression,
Values.just(CombinableArbitrary.from(LazyArbitrary.lazy(SUPPLIER)))
)
@praveenfun2 1.0.8 is released. Please check it out!
Seems to be working !! This can be closed now
Describe the bug
Consider the below code.
Above code throws error "No resolved property is found."
Your environment
Steps to reproduce
Mentioned above
Expected behaviour
Since property "abc" is of type Class, any subclass (SubClass) should be assignable to it.
Actual behaviour
Tell us what happens instead