jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JBehave
  • JBEHAVE-146

PendingErrorStrategy choices needs one more.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Wish Wish
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

PASSING and SILENT are identical method bodies
The same is true of FAILING and RETHROW

[ moving past that issue ]

Could y'all make one more strategy ?

 
   /**
     * This will continue the scenario as PASSING would, but at the end, remember that there was an issue during the run, and throw it again then.
     */
  PendingErrorStrategy FAIL_LATER = new PendingErrorStrategy() { 
        public void handleError(Throwable throwable) {
            // ??
        }
    };

Note, I've even given you some /** Javadoc */ for this, as http://jbehave.org/javadoc/latest/core/org/jbehave/scenario/errors/PendingErrorStrategy.html is a little sparse on information

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Mauro Talevi added a comment - 05/Nov/08 12:51 AM

Paul - PASSING and SILENT are implementations of different types (albeit one extending the other). Similarly, for FAILING and RETHROW.

They address different concerns - the ErrorStrategy and PendingErrorStrategy - and the fact that the implementation is the same is accidental.

This is expressed by the fact also by their different names.

As for the additional PendingErrorStrategy - could you please provide a test case (updating the existing ScenarioRunnerBehaviour) or a scenario to show the use case.

Show
Mauro Talevi added a comment - 05/Nov/08 12:51 AM Paul - PASSING and SILENT are implementations of different types (albeit one extending the other). Similarly, for FAILING and RETHROW. They address different concerns - the ErrorStrategy and PendingErrorStrategy - and the fact that the implementation is the same is accidental. This is expressed by the fact also by their different names. As for the additional PendingErrorStrategy - could you please provide a test case (updating the existing ScenarioRunnerBehaviour) or a scenario to show the use case.
Hide
Permalink
Paul Hammant added a comment - 05/Nov/08 1:27 PM

It's a pretty open arch. I can implement something that works for me, and donate back

Show
Paul Hammant added a comment - 05/Nov/08 1:27 PM It's a pretty open arch. I can implement something that works for me, and donate back
Hide
Permalink
Mauro Talevi added a comment - 05/Nov/08 2:43 PM

That would be very welcome!

Show
Mauro Talevi added a comment - 05/Nov/08 2:43 PM That would be very welcome!
Hide
Permalink
Mauro Talevi added a comment - 24/Sep/10 9:32 AM

Paul, do you feel you still need more choices?

Show
Mauro Talevi added a comment - 24/Sep/10 9:32 AM Paul, do you feel you still need more choices?

People

  • Assignee:
    Unassigned
    Reporter:
    Paul Hammant
Vote (0)
Watch (1)

Dates

  • Created:
    04/Nov/08 5:06 PM
    Updated:
    16/Dec/11 4:12 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.