Search in sources :

Example 6 with Transition

use of io.serverlessworkflow.api.transitions.Transition in project kogito-runtimes by kiegroup.

the class SwitchValidatorTest method mockDefaultConditionWithTransition.

private static DefaultConditionDefinition mockDefaultConditionWithTransition() {
    DefaultConditionDefinition defaultCondition = mock(DefaultConditionDefinition.class);
    Transition transition = mock(Transition.class);
    doReturn(transition).when(defaultCondition).getTransition();
    return defaultCondition;
}
Also used : Transition(io.serverlessworkflow.api.transitions.Transition) DefaultConditionDefinition(io.serverlessworkflow.api.defaultdef.DefaultConditionDefinition)

Aggregations

Transition (io.serverlessworkflow.api.transitions.Transition)6 DefaultConditionDefinition (io.serverlessworkflow.api.defaultdef.DefaultConditionDefinition)5 EventCondition (io.serverlessworkflow.api.switchconditions.EventCondition)2 Test (org.junit.jupiter.api.Test)2 DataCondition (io.serverlessworkflow.api.switchconditions.DataCondition)1