Class ClassImposteriser

  • All Implemented Interfaces:
    org.jmock.api.Imposteriser

    public class ClassImposteriser
    extends java.lang.Object
    implements org.jmock.api.Imposteriser
    Deprecated.
    Java11 support is weak, Migrate to org.jmock.lib.imposters.ByteBuddyClassImposteriser
    This class lets you imposterise abstract and concrete classes without calling the constructors of the mocked class.
    Author:
    npryce
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.jmock.api.Imposteriser INSTANCE
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean canImposterise​(java.lang.Class<?> type)
      Deprecated.
       
      <T> T imposterise​(org.jmock.api.Invokable mockObject, java.lang.Class<T> mockedType, java.lang.Class<?>... ancilliaryTypes)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • INSTANCE

        public static final org.jmock.api.Imposteriser INSTANCE
        Deprecated.
    • Method Detail

      • canImposterise

        public boolean canImposterise​(java.lang.Class<?> type)
        Deprecated.
        Specified by:
        canImposterise in interface org.jmock.api.Imposteriser
      • imposterise

        public <T> T imposterise​(org.jmock.api.Invokable mockObject,
                                 java.lang.Class<T> mockedType,
                                 java.lang.Class<?>... ancilliaryTypes)
        Deprecated.
        Specified by:
        imposterise in interface org.jmock.api.Imposteriser