Class Assertions

java.lang.Object
dev.dokimos.core.Assertions

public class Assertions extends Object
Assertion utilities for evaluation-based testing.

Evaluates test cases against configured evaluators and throws AssertionError if any evaluation fails to meet its threshold.

  • Method Details

    • assertEval

      public static void assertEval(EvalTestCase testCase, List<Evaluator> evaluators)
      Asserts that the test case passes all evaluators.
      Parameters:
      testCase - the test case to evaluate
      evaluators - the evaluators to run
      Throws:
      AssertionError - if any evaluator score falls below its threshold
    • assertEval

      public static void assertEval(EvalTestCase testCase, Evaluator... evaluators)
      Asserts that the test case passes all evaluators.
      Parameters:
      testCase - the test case to evaluate
      evaluators - the evaluators to run
      Throws:
      AssertionError - if any evaluator score falls below its threshold