JBehave
  1. JBehave
  2. JBEHAVE-895

Expose the stepsType inside StepCandidate

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.5
    • Fix Version/s: 3.8
    • Component/s: Core
    • Labels:
      None
    • Environment:
      N/A
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      The StepCandidate class does not expose the actual Class type for the implementing class type. In order for a caller to find this out, it must instantiate the step using getStepsInstance() and then call getClass().

      This creates a problem when integrating with the jbehave-junit-runner as described in this issue: https://github.com/codecentric/jbehave-junit-runner/issues/29.

      That issue cannot be resolved unless the caller can ask for the class type without instantiating it. Code showing an example of this problem is attached below.

        Activity

        Hide
        Ryan Nelson added a comment -

        By the way, I'm happy to submit a patch for this if someone can direct me to the proper process.

        Show
        Ryan Nelson added a comment - By the way, I'm happy to submit a patch for this if someone can direct me to the proper process.
        Show
        Mauro Talevi added a comment - http://jbehave.org/reference/stable/how-to-contribute.html
        Show
        Mauro Talevi added a comment - Pulled https://github.com/jbehave/jbehave-core/pull/42
        Mauro Talevi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 3.7.6 [ 19035 ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Fix Version/s 3.8 [ 19104 ]
        Fix Version/s 3.7.6 [ 19035 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Ryan Nelson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: