Package com.spotify.apollo.test.unit
Class RouteMatchers
- java.lang.Object
-
- com.spotify.apollo.test.unit.RouteMatchers
-
public class RouteMatchers extends Object
A matcher that will compare the method and URI.
-
-
Constructor Summary
Constructors Constructor Description RouteMatchers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.hamcrest.Matcher<com.spotify.apollo.route.Route>
hasMethod(String method)
static org.hamcrest.Matcher<com.spotify.apollo.route.Route>
hasUri(String uri)
static org.hamcrest.Matcher<com.spotify.apollo.route.Route>
hasUriAndMethod(String method, String uri)
Build a matcher.
-
-
-
Method Detail
-
hasUriAndMethod
public static org.hamcrest.Matcher<com.spotify.apollo.route.Route> hasUriAndMethod(String method, String uri)
Build a matcher.- Parameters:
method
- The method to matchuri
- The uri to match- Returns:
- A matcher
-
hasUri
public static org.hamcrest.Matcher<com.spotify.apollo.route.Route> hasUri(String uri)
-
hasMethod
public static org.hamcrest.Matcher<com.spotify.apollo.route.Route> hasMethod(String method)
-
-