Closed gimon1156 closed 8 months ago
Hi! I think I completely forgot about variadic functions support. I will check it and apply fix if needed.
Varargs are working now.
So in your example it should be smth like
WhenSingle(greet.sayHello(Any[string](), Any[string](), Any[string]())).ThenReturn("hello James Jack")
Hi I have following code but don't know how to match the method called to mock the result.
The
names
params inside the sayHello is optional and can take in multiple string value. Try withAny[string]()
but not working.Both above mocking is not working