Skip to content

Commit

Permalink
(#217) Remove duplicated class
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Aug 19, 2020
1 parent 0c63dd0 commit a1be216
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 82 deletions.
16 changes: 3 additions & 13 deletions src/main/java/com/jcabi/http/mock/MkQueryMatchers.java
Expand Up @@ -86,26 +86,16 @@ public static Matcher<MkQuery> hasPath(final Matcher<String> path) {
);
}

/**
* Matches the query of the MkQuery.
*
* @param path The path to check.
* @return Matcher for checking the query part of MkQuery
*/
public static Matcher<MkQuery> hasQuery(final Matcher<String> path) {
return new MkQueryUriMatcher(
Matchers.<URI>hasProperty("rawQuery", path)
);
}

/**
* Matches the query of the MkQuery.
*
* @param query The query to check.
* @return Matcher for checking the query of MkQuery
*/
public static Matcher<MkQuery> hasQuery(final Matcher<String> query) {
return new MkQueryQueryMatcher(query);
return new MkQueryUriMatcher(
Matchers.<URI>hasProperty("rawQuery", query)
);
}

}
69 changes: 0 additions & 69 deletions src/main/java/com/jcabi/http/mock/MkQueryQueryMatcher.java

This file was deleted.

0 comments on commit a1be216

Please sign in to comment.