Package org.mockito

Class MockMakers


  • public final class MockMakers
    extends java.lang.Object
    Constants for built-in implementations of MockMaker. You may use the constants of this class for MockSettings.mockMaker(String) or Mock.mockMaker(). The string values of these constants may also be used in the resource file mockito-extensions/org.mockito.plugins.MockMaker as described in the class documentation of MockMaker.
    Since:
    4.8.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String INLINE
      Inline mock maker which can mock final types, enums and final methods.
      static java.lang.String PROXY
      Proxy mock maker which avoids code generation, but can only mock interfaces.
      static java.lang.String SUBCLASS
      Subclass mock maker which mocks types by creating subclasses.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MockMakers()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait