Anything used as keys should have the same caveats as usual map keys, i.e. they should be immutable and their hashCode should play nice with their equals.

Cheers,
Dan

Elizabeth Keogh (JIRA) wrote:
     [ 
http://jira.codehaus.org/browse/JBEHAVE-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elizabeth Keogh closed JBEHAVE-81.
----------------------------------

    Resolution: Fixed

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.

Scenario steps should throw Exception in their signature.
---------------------------------------------------------

                Key: JBEHAVE-81
                URL: http://jira.codehaus.org/browse/JBEHAVE-81
            Project: JBehave
         Issue Type: Improvement
   Affects Versions: 1.0
           Reporter: Elizabeth Keogh
            Fix For: 1.1


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.


Reply via email to