Interface MockName


public interface MockName
Represents the name of the mock as shown in the verification failure reports, etc.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    default name means generated by Mockito.
    the name
  • Method Details

    • toString

      String toString()
      the name
      Overrides:
      toString in class Object
    • isDefault

      boolean isDefault()
      default name means generated by Mockito. non-default means the user has named the mock at creation.