Package eu.iv4xr.framework
Class Iv4xrEDSL
java.lang.Object
eu.iv4xr.framework.Iv4xrEDSL
Provide a set of convenience static methods.
- Author:
- wish
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <State> GoalStructure
assertTrue_(TestAgent ta, String assertionFamilyName, String assertionInfo, Predicate<State> predicate)
A Goal that when selected, will cause the agent to check the given predicate.assertTrue_(String assertionFamilyName, String assertionInfo, boolean assertion)
Check a boolean expression, if it is true then produce a positive VerdictEvent, and else a negative VerdictEvent.static TestGoal
Create a blank instance ofTestGoal
with the given name.static TestGoal
Create a blank instance ofTestGoal
with the given name, and linking it to the given test-agent.
-
Constructor Details
-
Iv4xrEDSL
public Iv4xrEDSL()
-
-
Method Details
-
testgoal
Create a blank instance ofTestGoal
with the given name. -
testgoal
Create a blank instance ofTestGoal
with the given name, and linking it to the given test-agent. -
assertTrue_
public static ObservationEvent.VerdictEvent assertTrue_(String assertionFamilyName, String assertionInfo, boolean assertion)Check a boolean expression, if it is true then produce a positive VerdictEvent, and else a negative VerdictEvent.- Parameters:
assertionFamilyName
- a text to classify the asserting as belonging to some category, if any.assertionInfo
- some info text on what the property is being checked.assertion
- the boolean expression to check.
-
assertTrue_
public static <State> GoalStructure assertTrue_(TestAgent ta, String assertionFamilyName, String assertionInfo, Predicate<State> predicate)A Goal that when selected, will cause the agent to check the given predicate.
-