Class CucumberWorkflowSteps

java.lang.Object
org.chenile.cucumber.workflow.CucumberWorkflowSteps

@ActiveProfiles("unittest") public class CucumberWorkflowSteps extends Object
Cucumber steps to facilitate running tests using Spring MOCK MVC.
These methods automate using the enablement strategy in the workflow They also support the workflow activity framework.
  • Field Details

  • Constructor Details

    • CucumberWorkflowSteps

      public CucumberWorkflowSteps()
  • Method Details

    • that_enablement_strategy_is

      @Given("that config strategy is {string}") public void that_enablement_strategy_is(String beanName)
    • that_enablement_strategy_is_with_prefix

      @Given("that config strategy is {string} with prefix {string}") public void that_enablement_strategy_is_with_prefix(String beanName, String prefix)
    • that_a_new_mandatory_activity_is_added_to_state_in_flow

      @Given("that a new mandatory activity {string} is added from state {string} to state {string} in flow {string}") public void that_a_new_mandatory_activity_is_added_to_state_in_flow(String activityName, String fromStateId, String toStateId, String flowId) throws Exception
      Throws:
      Exception
    • that_a_new_optional_activity_is_added_to_state_in_flow

      @Given("that a new optional activity {string} is added from state {string} to state {string} in flow {string}") public void that_a_new_optional_activity_is_added_to_state_in_flow(String activityName, String fromStateId, String toStateId, String flowId) throws Exception
      Throws:
      Exception
    • that_a_new_activity_completion_checker_is_added_to_state_in_flow

      @Given("that a new activity completion checker {string} is added from state {string} to state {string} in flow {string}") public void that_a_new_activity_completion_checker_is_added_to_state_in_flow(String activityName, String fromStateId, String toStateId, String flowId) throws Exception
      Throws:
      Exception
    • that_all_enablements_are_cleared

      @Given("that all enablements are cleared") public void that_all_enablements_are_cleared()
    • that_a_new_state_is_added_to_flow

      @Given("that a new state {string} is added to flow {string}") public void that_a_new_state_is_added_to_flow(String stateId, String flowId) throws Exception
      Throws:
      Exception
    • that_a_new_transition_is_added_to_state_in_flow

      @Given("that a new transition {string} is added from state {string} to state {string} in flow {string}") public void that_a_new_transition_is_added_to_state_in_flow(String eventId, String fromState, String toState, String flowId) throws Exception
      Throws:
      Exception
    • that_state_is_enabled

      @Given("that state {string} in flow {string} is enabled") public void that_state_is_enabled(String stateId, String flowId) throws Exception
      Throws:
      Exception
    • that_state_is_disabled

      @Given("that state {string} in flow {string} is disabled") public void that_state_is_disabled(String stateId, String flowId) throws Exception
      Throws:
      Exception
    • that_transition_in_state_in_flow_is_enabled

      @Given("that transition {string} in state {string} in flow {string} is enabled") public void that_transition_in_state_in_flow_is_enabled(String eventId, String stateId, String flowId) throws Exception
      Throws:
      Exception
    • that_transition_for_state_in_flow_is_disabled

      @Given("that transition {string} for state {string} in flow {string} is disabled") public void that_transition_for_state_in_flow_is_disabled(String eventId, String stateId, String flowId) throws Exception
      Throws:
      Exception
    • that_state_in_flow_has_metadata_with_key_value

      @Given("that state {string} in flow {string} has metadata with key {string} and value {string}") public void that_state_in_flow_has_metadata_with_key_value(String stateId, String flowId, String key, String value) throws Exception
      Throws:
      Exception
    • that_transition_from_state_in_flow_has_metadata_with_key_value

      @Given("that transition {string} from state {string} in flow {string} has metadata with key {string} and value {string}") public void that_transition_from_state_in_flow_has_metadata_with_key_value(String eventId, String stateId, String flowId, String key, String value) throws Exception
      Throws:
      Exception