Class TypeMatcher

  • All Implemented Interfaces:
    org.easymock.ArgumentsMatcher

    public class TypeMatcher
    extends org.easymock.AbstractMatcher
    AbstractMatcher that checks type of objects only.
    Author:
    Daniel Sagenschneider
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class<?>[] matchTypes
      Types of the arguments expected.
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeMatcher​(java.lang.Class<?>... types)
      Initiate with a multiple argument types.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.Object[] expected, java.lang.Object[] actual)  
      • Methods inherited from class org.easymock.AbstractMatcher

        argumentMatches, argumentToString, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • matchTypes

        protected final java.lang.Class<?>[] matchTypes
        Types of the arguments expected.
    • Constructor Detail

      • TypeMatcher

        public TypeMatcher​(java.lang.Class<?>... types)
        Initiate with a multiple argument types.
        Parameters:
        types - Types corresponding the parameters.
    • Method Detail

      • matches

        public boolean matches​(java.lang.Object[] expected,
                               java.lang.Object[] actual)
        Specified by:
        matches in interface org.easymock.ArgumentsMatcher
        Overrides:
        matches in class org.easymock.AbstractMatcher