use of au.com.dius.pact.core.model.matchingrules.MatchingRuleGroup in project pact-jvm by DiUS.
the class MatcherTestUtils method assertResponseMatcherKeysEqualTo.
public static void assertResponseMatcherKeysEqualTo(RequestResponsePact pact, String category, String... matcherKeys) {
MatchingRules matchingRules = pact.getInteractions().get(0).asSynchronousRequestResponse().getResponse().getMatchingRules();
Map<String, MatchingRuleGroup> matchers = matchingRules.rulesForCategory(category).getMatchingRules();
assertEquals(asSet(matcherKeys), new TreeSet<>(matchers.keySet()));
}
Aggregations