JBehave
  1. JBehave
  2. JBEHAVE-199

Allow ScenarioClassLoader to instantiate scenarios using default constructor

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.2, 2.4
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Currently, all scenario classes need a constructor with a ClassLoader parameter, required by CLI runner with Maven and Ant.

      While using core only, it is typically not required. So ScenarioClassLoader.newScenario() should support a varargs of parameter types, which also allow for no parameter types to instantiate using the default constructor. It is then up to the caller to use the appropriate parameter types.

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Fix Version/s 2.3.2 [ 15942 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Mauro Talevi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: