JBehave

Add support for BigDecimal and BigInteger parameters

Details

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

Description

Posted by Gerard Meszaros on wiki:

We had trouble using numbers with decimal points in our specs because we were dealing with money. We tried declaring parameters as BigDecimal but could not get this to work. It should be possible to do this out of the box with no extra effort as it is a pretty common need.

BigInteger should also be supported.

Activity

Hide
Mauro Talevi added a comment -

Currently this is achievable via a custom parameter converter: http://jbehave.org/documentation/parameter-converters

Out-of-the-box support will follow soon.

Show
Mauro Talevi added a comment - Currently this is achievable via a custom parameter converter: http://jbehave.org/documentation/parameter-converters Out-of-the-box support will follow soon.
Hide
Mauro Talevi added a comment -

Added support for BigDecimal and BigInteger.

Show
Mauro Talevi added a comment - Added support for BigDecimal and BigInteger.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: