-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertions refactoring #6
Assertions refactoring #6
Conversation
...rc/integrationTest/java/io/opentelemetry/contrib/jmxscraper/assertions/AttributeMatcher.java
Outdated
Show resolved
Hide resolved
…emetry-java-contrib into assertions-refactoring
* @param attributes attributes to check as map | ||
* @return {@literal true} when the attributes match all attributes from this set | ||
*/ | ||
public boolean matches(Map<String, String> attributes) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[for reviewer] we can move part of the matching logic here as we don't need to generate the assertions from here. details on potential mismatches are provided by the calling code in MetricAssert
. Another benefit of doing this is that is allows to not expose elsewhere that it's stored in map.
AttributeMatcherSet
class that is backed by a mapCollection<?>...
for method arguments.Set
in java collections