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
after I finished working on SaveSamples-part of a service execution, I started with the LoadSamples-part.
This quickly throw me an Matcher-Error for a call like Sample.of(service.doStuff(Matchers.equalTo("MyString"))); as the EqualsMatcher does not allow a type without an equals-implementation.
As a workaround I then used Matcher.matcher(param -> "MyString".equals(param)).
When taking a look at e.g. hamcrest as matcher library, this is working with String as well.
I thought about implementing a hamcrest-to-ParameterMatcher wrapper but wanted to let you know first as you maybe want to do something about this inside deepsampler.
Best regards,
Michel Pittelkow
The text was updated successfully, but these errors were encountered:
Hi,
after I finished working on SaveSamples-part of a service execution, I started with the LoadSamples-part.
This quickly throw me an Matcher-Error for a call like
Sample.of(service.doStuff(Matchers.equalTo("MyString")));
as the EqualsMatcher does not allow a type without an equals-implementation.As a workaround I then used
Matcher.matcher(param -> "MyString".equals(param))
.When taking a look at e.g. hamcrest as matcher library, this is working with String as well.
I thought about implementing a hamcrest-to-ParameterMatcher wrapper but wanted to let you know first as you maybe want to do something about this inside deepsampler.
Best regards,
Michel Pittelkow
The text was updated successfully, but these errors were encountered: