JBehave
  1. JBehave
  2. JBEHAVE-231

Allow CandidateSteps methods to be defined in POJOs

    Details

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

      Description

      The composition model ("has-a") is often preferable to the inheritance model ("is-a").

      CandidateSteps methods should be definable in POJOs that do not necessarily extend Steps. Rather, Steps should be able to wrap a steps instance POJO and retrieve the annotated steps methods from it.

      Both composition and inheritance models should be supported.

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: