Class PowerMockMaker

java.lang.Object
org.powermock.api.mockito.mockmaker.PowerMockMaker
All Implemented Interfaces:
org.mockito.plugins.MockMaker

public class PowerMockMaker extends Object implements org.mockito.plugins.MockMaker
A PowerMock implementation of the MockMaker.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.mockito.plugins.MockMaker

    org.mockito.plugins.MockMaker.ConstructionMockControl<T>, org.mockito.plugins.MockMaker.StaticMockControl<T>, org.mockito.plugins.MockMaker.TypeMockability
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    createMock(org.mockito.mock.MockCreationSettings<T> settings, org.mockito.invocation.MockHandler handler)
     
    org.mockito.invocation.MockHandler
     
    org.mockito.plugins.MockMaker.TypeMockability
     
    void
    resetMock(Object mock, org.mockito.invocation.MockHandler newHandler, org.mockito.mock.MockCreationSettings settings)
     

    Methods inherited from class Object

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

    Methods inherited from interface org.mockito.plugins.MockMaker

    clearAllCaches, createConstructionMock, createSpy, createStaticMock
  • Constructor Details

    • PowerMockMaker

      public PowerMockMaker()
  • Method Details

    • createMock

      public <T> T createMock(org.mockito.mock.MockCreationSettings<T> settings, org.mockito.invocation.MockHandler handler)
      Specified by:
      createMock in interface org.mockito.plugins.MockMaker
    • getHandler

      public org.mockito.invocation.MockHandler getHandler(Object mock)
      Specified by:
      getHandler in interface org.mockito.plugins.MockMaker
    • resetMock

      public void resetMock(Object mock, org.mockito.invocation.MockHandler newHandler, org.mockito.mock.MockCreationSettings settings)
      Specified by:
      resetMock in interface org.mockito.plugins.MockMaker
    • isTypeMockable

      public org.mockito.plugins.MockMaker.TypeMockability isTypeMockable(Class<?> type)
      Specified by:
      isTypeMockable in interface org.mockito.plugins.MockMaker