Interface MinimalCounterexampleHook

All Known Implementing Classes:
NilMinimalCounterexampleHook

public interface MinimalCounterexampleHook

Allows access to an actual failing example.

This may be useful if any of the objects' Object.toString() representations is difficult to understand.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(Object[] counterexample, Runnable action)
     
  • Method Details

    • handle

      void handle(Object[] counterexample, Runnable action)
      Parameters:
      counterexample - the minimal counterexample (after shrinking)
      action - work to perform with the minimal counterexample; for example, this could repeat the test using the same inputs. This action should be safely callable multiple times.