JBehave

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

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: