Package io.github.brantunger.unruly.test
@NullMarked
package io.github.brantunger.unruly.test
Tools for testing an expression language.
ExpressionLanguageContractTest— A JUnit Jupiter test that checks what the engine promises for rules in any language. A language's test extends it.LanguageTestContexts— Creates the contexts the engine passes to a language, which are sealed, for unit tests of a compiler or a compiled expression.
Types in this package are non-null unless annotated Nullable.
- See Also:
-
ClassDescriptionWhat the engine promises for rules in any expression language.An account as a JavaBean with a setter taking a
long, the outputoutputNumbersConvertedwrites a wholeDoublenointholds to.An applicant, so a language's tests can run a rule against a record fact.An applicant as a JavaBean, so a language's tests can run a rule against a fact whose property is a getter.The fact the nested-run checks run their rules against: itsvalueproperty starts a run nested inside the run that reads it, on the same thread, as a getter a condition or an action reads, or a function it calls, does when it runs rules.An applicant as a JavaBean with a setter, so a language's tests can run a rule against a fact whose property a condition could write.Creates the contexts the engine passes to an expression language, for unit tests of a language's compiler and compiled expressions.