Package org.mockito

Interface MockedConstruction.Context

Enclosing interface:
MockedConstruction<T>

public static interface MockedConstruction.Context
The context for a construction mock.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<?>
    Get the arguments that were passed to the constructor.
    Get the constructor that is invoked during the mock creation.
    int
     
  • Method Details

    • getCount

      int getCount()
    • constructor

      Constructor<?> constructor()
      Get the constructor that is invoked during the mock creation.
      Returns:
      the constructor.
    • arguments

      List<?> arguments()
      Get the arguments that were passed to the constructor.
      Returns:
      the arguments passed to the constructor, as a list.