JBehave

Should be able to use JBehave without inheriting from a base class

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 3.0
  • Component/s: Core
  • Labels:
    None
  • Environment:
    Any
  • Number of attachments :
    0

Description

Currently, a JBehave test scenario require inheriting from the base Scenario class. Certain other test frameworks may also require inheritance, but multiple inheritance is not allowed in Java. For this reason, configuration of a delegate Scenario may be preferred. I created a blog entry with the necessary code to accomplish this:
http://blog.davidron.com/2009/12/breaking-jbehave-inheritance-hierarchy.html

Activity

Hide
Mauro Talevi added a comment -

Look at org.jbehave.examples.trader.spring.SpringTraderRunner in the trader example.

It shows how with new embeddable architecture (JBEHAVE-267), users can leverage any framework to run stories.

In particular, the example above uses Spring JUnit4 Class Runner.

Show
Mauro Talevi added a comment - Look at org.jbehave.examples.trader.spring.SpringTraderRunner in the trader example. It shows how with new embeddable architecture (JBEHAVE-267), users can leverage any framework to run stories. In particular, the example above uses Spring JUnit4 Class Runner.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: