@Test public void shouldGetEmptyQueryParamMatchersWhenOnlyQueryParamNameSet() { Endpoint endpoint = new Endpoint("/URI_C", "POST", "QUERY_PARAM"); Set<QueryParameterMatcher> queryParamMatchers = endpoint.getQueryParamMatchers(); assertTrue(queryParamMatchers.isEmpty()); }
public Set<QueryParameterMatcher> getQueryParamMatchers() { Set<QueryParameterMatcher> queryParamMatchers = new HashSet<QueryParameterMatcher>(); if (queryParam != null) { for (String queryParamValue : queryParamValues) { queryParamMatchers.add(new QueryParameterMatcher(queryParam, queryParamValue)); } } return queryParamMatchers; }
Endpoint { public Set<QueryParameterMatcher> getQueryParamMatchers() { Set<QueryParameterMatcher> queryParamMatchers = new HashSet<QueryParameterMatcher>(); if (queryParam != null) { for (String queryParamValue : queryParamValues) { queryParamMatchers.add(new QueryParameterMatcher(queryParam, queryParamValue)); } } return queryParamMatchers; } }
Endpoint { public Set<QueryParameterMatcher> getQueryParamMatchers() { Set<QueryParameterMatcher> queryParamMatchers = new HashSet<QueryParameterMatcher>(); if (queryParam != null) { for (String queryParamValue : queryParamValues) { queryParamMatchers.add(new QueryParameterMatcher(queryParam, queryParamValue)); } } return queryParamMatchers; } Endpoint(String uri, String httpMethod);  Endpoint(String uri, String httpMethod, String queryParam, String... queryParamValues); }
Endpoint { public Set<QueryParameterMatcher> getQueryParamMatchers() { Set<QueryParameterMatcher> queryParamMatchers = new HashSet<QueryParameterMatcher>(); if (queryParam != null) { for (String queryParamValue : queryParamValues) { queryParamMatchers.add(new QueryParameterMatcher(queryParam, queryParamValue)); } } return queryParamMatchers; } Endpoint(String uri, String httpMethod);  Endpoint(String uri, String httpMethod, String queryParam, String... queryParamValues); Set<QueryParameterMatcher> getQueryParamMatchers(); @Override boolean equals(Object o); @Override int hashCode(); }
Endpoint { public Set<QueryParameterMatcher> getQueryParamMatchers() { Set<QueryParameterMatcher> queryParamMatchers = new HashSet<QueryParameterMatcher>(); if (queryParam != null) { for (String queryParamValue : queryParamValues) { queryParamMatchers.add(new QueryParameterMatcher(queryParam, queryParamValue)); } } return queryParamMatchers; } Endpoint(String uri, String httpMethod);  Endpoint(String uri, String httpMethod, String queryParam, String... queryParamValues); Set<QueryParameterMatcher> getQueryParamMatchers(); @Override boolean equals(Object o); @Override int hashCode();  }