Interface MockCreationSettings<T>

    • Method Detail

      • getTypeToMock

        java.lang.Class<T> getTypeToMock()
        Mocked type. An interface or class the mock should implement / extend.
      • getExtraInterfaces

        java.util.Set<java.lang.Class> getExtraInterfaces()
        the extra interfaces the mock object should implement.
      • getSpiedInstance

        java.lang.Object getSpiedInstance()
        the spied instance - needed for spies.
      • getSerializableMode

        SerializableMode getSerializableMode()
        Returns:
        the serializable mode of this mock
      • isStubOnly

        boolean isStubOnly()
        Whether the mock is only for stubbing, i.e. does not remember parameters on its invocation and therefore cannot be used for verification
      • isUsingConstructor

        @Incubating
        boolean isUsingConstructor()
        Informs whether the mock instance should be created via constructor
        Since:
        1.10.12
      • getOuterClassInstance

        @Incubating
        java.lang.Object getOuterClassInstance()
        Used when mocking non-static inner classes in conjunction with isUsingConstructor()
        Returns:
        the outer class instance used for creation of the mock object via the constructor.
        Since:
        1.10.12