public static class StacktraceLogChecker.MethodCall extends Object
Constructor and Description |
---|
MethodCall() |
MethodCall(String packageName,
String clazz,
String method) |
MethodCall(String packageName,
String clazz,
String method,
Integer lineNumber) |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<StacktraceLogChecker.MethodCall> |
compatibleWith(StacktraceLogChecker.MethodCall thisCall)
Matcher to compare two Method calls. |
String |
getClazz() |
Integer |
getLineNumber() |
String |
getMethod() |
String |
getPackageName() |
int |
hashCode() |
boolean |
isLineNumberSet() |
void |
setClazz(String clazz) |
void |
setLineNumber(Integer lineNumber) |
void |
setMethod(String method) |
void |
setPackageName(String packageName) |
String |
toString() |
public static org.hamcrest.Matcher<StacktraceLogChecker.MethodCall> compatibleWith(StacktraceLogChecker.MethodCall thisCall)
Matcher
to compare two Method calls.
Two method calls will be compatible if all their defined fields are equal. If a field is not defined(null),
if will be ignored in the comparison.
For example:
MethodCall(null,null,null,null) will be compatible with every other MethodCall.
MethodCall(aPackage,aClass,aMethod,null) will be compatible with MethodCall(aPackage,aClass,aMethod,128)
but won't be compatible with MethodCall(otherPackage,aClass,aMethod,null).thisCall
- Matcher
for checking compatible method calls.public boolean isLineNumberSet()
public String getPackageName()
public void setPackageName(String packageName)
public String getClazz()
public void setClazz(String clazz)
public String getMethod()
public void setMethod(String method)
public Integer getLineNumber()
public void setLineNumber(Integer lineNumber)
Copyright © 2018. All rights reserved.