@Test public void testUriWhitelistNotMatchDifferentOrder() throws Exception { RecordedHttpRequest recordedHttpRequest1 = new RecordedHttpRequest(null, new URI("http: RecordedHttpRequest recordedHttpRequest2 = new RecordedHttpRequest(null, new URI("http: HashSet<String> whitelist = new HashSet<>(); whitelist.add("a"); whitelist.add("c"); MatchRule matchRule = MatchRuleUtils.matchUriWithQueryWhitelist(whitelist); Assert.assertFalse(matchRule.test(recordedHttpRequest1, recordedHttpRequest2)); Assert.assertTrue(matchRule.getMatchFailureDescriptionForRequests(recordedHttpRequest1, recordedHttpRequest2).contains("URI Mismatch (with Query Whitelist)")); }
public static MatchRule matchUriWithQueryWhitelist(Set<String> whiteList) { return new MatchUriWithQueryTransform(new MatchRuleWhitelistTransform(whiteList)); }
MatchRuleUtils { public static MatchRule matchUriWithQueryWhitelist(Set<String> whiteList) { return new MatchUriWithQueryTransform(new MatchRuleWhitelistTransform(whiteList)); } }
MatchRuleUtils { public static MatchRule matchUriWithQueryWhitelist(Set<String> whiteList) { return new MatchUriWithQueryTransform(new MatchRuleWhitelistTransform(whiteList)); } private  MatchRuleUtils(); }
MatchRuleUtils { public static MatchRule matchUriWithQueryWhitelist(Set<String> whiteList) { return new MatchUriWithQueryTransform(new MatchRuleWhitelistTransform(whiteList)); } private  MatchRuleUtils(); static MatchRule matchEntireRequest(); static MatchRule matchMethodUri(); static MatchRule matchMethodBodyUri(); static MatchRule matchMethodUriBodyWithAnyBoundary(); static MatchRule matchUriWithQueryWhitelist(Set<String> whiteList); static MatchRule matchUriWithQueryBlacklist(Set<String> blackList); static MatchRule matchHeadersWithWhitelist(Set<String> whiteList); static MatchRule matchHeadersWithBlacklist(Set<String> blackList); static MatchRule matchBodyPostParametersWithWhitelist(Set<String> whiteList); static MatchRule matchBodyPostParametersWithBlacklist(Set<String> blackList); }
MatchRuleUtils { public static MatchRule matchUriWithQueryWhitelist(Set<String> whiteList) { return new MatchUriWithQueryTransform(new MatchRuleWhitelistTransform(whiteList)); } private  MatchRuleUtils(); static MatchRule matchEntireRequest(); static MatchRule matchMethodUri(); static MatchRule matchMethodBodyUri(); static MatchRule matchMethodUriBodyWithAnyBoundary(); static MatchRule matchUriWithQueryWhitelist(Set<String> whiteList); static MatchRule matchUriWithQueryBlacklist(Set<String> blackList); static MatchRule matchHeadersWithWhitelist(Set<String> whiteList); static MatchRule matchHeadersWithBlacklist(Set<String> blackList); static MatchRule matchBodyPostParametersWithWhitelist(Set<String> whiteList); static MatchRule matchBodyPostParametersWithBlacklist(Set<String> blackList);  }