JBehave
  1. JBehave
  2. JBEHAVE-81

Scenario steps should throw Exception in their signature.

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0.1
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      For the same reason that should... methods should be able to throw an exception, so should ScenarioSteps. This prevents me having to wrap code that shouldn't be throwing exceptions anyway.

        Activity

        Hide
        Elizabeth Keogh added a comment -

        Scenario steps throw Exception in their main perform-method.

        They do not throw Exception in their cleanUp. This is because cleanUp happens in a finally {} clause, and you have to decide what you want to do with any exception you throw.

        Show
        Elizabeth Keogh added a comment - Scenario steps throw Exception in their main perform-method. They do not throw Exception in their cleanUp. This is because cleanUp happens in a finally {} clause, and you have to decide what you want to do with any exception you throw.
        Elizabeth Keogh made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Elizabeth Keogh
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: