Interface ResultChecker

All Superinterfaces:
Consumer<ScriptResult>

public interface ResultChecker extends Consumer<ScriptResult>
A checker for ScriptResults that imposes some set of requirements that must be satisfied.

By convention, instances should throw a ResultCheckerException (or some subtype) if a requirement is not met, specifying a specific SnippetOutcome (by its index) if appropriate.

See Also:
  • Method Details