Class TestNGMethodFilter

java.lang.Object
org.powermock.modules.testng.internal.TestNGMethodFilter
All Implemented Interfaces:
javassist.util.proxy.MethodFilter

public class TestNGMethodFilter extends Object implements javassist.util.proxy.MethodFilter
Javassist 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 Details

    • TestNGMethodFilter

      public TestNGMethodFilter()
  • Method Details

    • isHandled

      public boolean isHandled(Method method)
      Specified by:
      isHandled in interface javassist.util.proxy.MethodFilter
    • isEquals

      private boolean isEquals(Method method)
    • isFinalize

      private boolean isFinalize(Method method)
    • isHashCode

      private boolean isHashCode(Method method)
    • isToString

      private boolean isToString(Method method)
    • isZeroArgumentMethod

      private boolean isZeroArgumentMethod(Method method)
    • hasArgumentLength

      private boolean hasArgumentLength(Method method, int length)
    • isOneArgumentMethodOfType

      private boolean isOneArgumentMethodOfType(Method method, Class<?> type)