JavaScript is disabled on your browser.
Package: groovy.mock.interceptor

[Groovy] Class LooseExpectation


  • 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.

    See Also:
    StrictExpectation

    • Constructor Detail

      • LooseExpectation(Demand demand)

    • Method Detail

      • boolean isEligible(String name, int i)

      • Closure match(String name)

        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.

      • void verify()

        verify all calls are in expected range

Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /