Package 

Class InlineDexmakerMockMaker

  • All Implemented Interfaces:
    org.mockito.plugins.InlineMockMaker , org.mockito.plugins.MockMaker

    
    public final class InlineDexmakerMockMaker
     implements InlineMockMaker
                        

    Generates mock instances on Android's runtime that can mock final methods.

    This is done by transforming the byte code of the classes to add method entry hooks.

    • Method Summary

      Modifier and Type Method Description
      <T> T createMock(MockCreationSettings<T> settings, MockHandler handler)
      void resetMock(Object mock, MockHandler newHandler, MockCreationSettings settings)
      MockMaker.TypeMockability isTypeMockable(Class<out Object> type)
      void clearMock(Object mock)
      void clearAllMocks()
      MockHandler getHandler(Object mock)
      • Methods inherited from class org.mockito.plugins.InlineMockMaker

        clearAllMocks, clearMock
      • Methods inherited from class org.mockito.plugins.MockMaker

        createMock, getHandler, isTypeMockable, resetMock
      • Methods inherited from class java.lang.Object

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