class LooseExpectation extends Object
Expects demanded call cardinalities to match demanded ranges. The calls are allowed to be out of the recorded sequence. If a method is demanded multiple times, the ranges are filled by order of recording.
Constructor and description |
---|
LooseExpectation(Demand demand) |
Match the requested method name against eligible demands. Fail early if no match possible. Return the demand's behavior closure on match. Also skips over names matching ignore filter, if any.
verify all calls are in expected range
Copyright © 2003-2024 The Apache Software Foundation. All rights reserved.