Package: groovy.mock.interceptor

## [Groovy] Class CallSpec

- groovy.mock.interceptor.CallSpec

-     class CallSpec
      extends Object

  Describes one recorded expectation for a mocked method call.

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `Closure` | `behavior` Behavior to execute when the demand matches.
    `String` | `name` Name of the demanded method.
    `Range` | `range` Accepted call-count range for the demand.

  - ### Constructor Summary

    Constructors
    Constructor and description
    `CallSpec()`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Property Detail

    - #### Closure behavior

      Behavior to execute when the demand matches.

    - #### String name

      Name of the demanded method.

    - #### Range range

      Accepted call-count range for the demand.

  - ### Constructor Detail

    - #### CallSpec()