JBehave
  1. JBehave
  2. JBEHAVE-597

Can we disassociate PendingStepStrategy and FailureStrategy please (and impls)

    Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      There is no benefit from a usability POV for them being part of the same hierarchy. In fact its difficult to explain to newbies why that needs to be the case. In code there's only StoryRunner that holds on to three ThreadLocals:

      private ThreadLocal<FailureStrategy> currentStrategy = new ThreadLocal<FailureStrategy>();
      private ThreadLocal<FailureStrategy> failureStrategy = new ThreadLocal<FailureStrategy>();
      private ThreadLocal<PendingStepStrategy> pendingStepStrategy = new ThreadLocal<PendingStepStrategy>();

      .. which is also hard to explain why.

        Activity

        There are no entries against this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Paul Hammant
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: