Package dev.dokimos.core
Class Assertions
java.lang.Object
dev.dokimos.core.Assertions
Assertion utilities for evaluation-based testing.
Evaluates test cases against configured evaluators and throws AssertionError if any evaluation fails to meet its threshold.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertEval(EvalTestCase testCase, Evaluator... evaluators) Asserts that the test case passes all evaluators.static voidassertEval(EvalTestCase testCase, List<Evaluator> evaluators) Asserts that the test case passes all evaluators.
-
Method Details
-
assertEval
Asserts that the test case passes all evaluators.- Parameters:
testCase- the test case to evaluateevaluators- the evaluators to run- Throws:
AssertionError- if any evaluator score falls below its threshold
-
assertEval
Asserts that the test case passes all evaluators.- Parameters:
testCase- the test case to evaluateevaluators- the evaluators to run- Throws:
AssertionError- if any evaluator score falls below its threshold
-