Class MethodMatcher
java.lang.Object
com.niklasarndt.okhttpmock.matchers.MethodMatcher
- All Implemented Interfaces:
Matcher
public class MethodMatcher extends java.lang.Object implements Matcher
-
Constructor Summary
Constructors Constructor Description MethodMatcher(java.lang.String method)
-
Method Summary
Modifier and Type Method Description java.lang.String
failReason(okhttp3.Request request)
boolean
matches(okhttp3.Request request)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
MethodMatcher
public MethodMatcher(java.lang.String method)
-
-
Method Details
-
matches
public boolean matches(okhttp3.Request request) -
failReason
public java.lang.String failReason(okhttp3.Request request)- Specified by:
failReason
in interfaceMatcher
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-