[jbehave-dev] [jira] Closed: (JBEHAVE-81) Scenario steps should throw Exception in their signature.

2007-03-22 Thread Elizabeth Keogh (JIRA)

 [ 
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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email



Re: [jbehave-dev] [jira] Closed: (JBEHAVE-81) Scenario steps should throw Exception in their signature.

2007-03-22 Thread Dan North
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.