Open esfomeado opened 9 months ago
@esfomeado Thanks for the suggestion. Do you have any good ideas?
Do you want an API that looks like this?
Order actual = sut.giveMeBuilder(Order.class)
.setExpGetter(Order::getOrderNo, 1)
.sample();
That looks good to me.
Describe the feature you request
As of now in Java you can use getters to set a value as specified on the documentation.
I think that it´s to verbose and not as neat as Kotlin where you can just do
.setExp(Order::orderNo, "1")
.I suggest to be a similar syntax as well for Java users.