[Groovy] Class Demand
- groovy.mock.interceptor.Demand
class Demand extends Object
The object that registers method calls on it for the use with Mocks and Stubs. For each call a CallSpec object is added to the recorded list.
Properties Summary
Type | Name and description |
---|---|
Map |
ignore |
List |
recorded |
Constructor Summary
Constructor and description |
---|
Demand
() |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
Object |
invokeMethod(String methodName, Object args) | |
Object |
verify(List calls) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Property Detail
Map ignore
List recorded
Constructor Detail
Demand()
Method Detail
Object invokeMethod(String methodName, Object args)
Object verify(List calls)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/mock/interceptor/Demand.html