Class TestNGMethodFilter
- java.lang.Object
-
- org.powermock.modules.testng.internal.TestNGMethodFilter
-
- All Implemented Interfaces:
javassist.util.proxy.MethodFilter
public class TestNGMethodFilter extends java.lang.Object implements javassist.util.proxy.MethodFilterJavassist method filter that ignores the toString, equals, finalize and hashCode method otherwise the test output in Maven looks strange and replayAll/verifyAll doesn't work as expected.
-
-
Constructor Summary
Constructors Constructor Description TestNGMethodFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanhasArgumentLength(java.lang.reflect.Method method, int length)private booleanisEquals(java.lang.reflect.Method method)private booleanisFinalize(java.lang.reflect.Method method)booleanisHandled(java.lang.reflect.Method method)private booleanisHashCode(java.lang.reflect.Method method)private booleanisOneArgumentMethodOfType(java.lang.reflect.Method method, java.lang.Class<?> type)private booleanisToString(java.lang.reflect.Method method)private booleanisZeroArgumentMethod(java.lang.reflect.Method method)
-
-
-
Method Detail
-
isHandled
public boolean isHandled(java.lang.reflect.Method method)
- Specified by:
isHandledin interfacejavassist.util.proxy.MethodFilter
-
isEquals
private boolean isEquals(java.lang.reflect.Method method)
-
isFinalize
private boolean isFinalize(java.lang.reflect.Method method)
-
isHashCode
private boolean isHashCode(java.lang.reflect.Method method)
-
isToString
private boolean isToString(java.lang.reflect.Method method)
-
isZeroArgumentMethod
private boolean isZeroArgumentMethod(java.lang.reflect.Method method)
-
hasArgumentLength
private boolean hasArgumentLength(java.lang.reflect.Method method, int length)
-
isOneArgumentMethodOfType
private boolean isOneArgumentMethodOfType(java.lang.reflect.Method method, java.lang.Class<?> type)
-
-