JBehave
  1. JBehave
  2. JBEHAVE-175

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.
        Mauro Talevi made changes -
        Field Original Value New Value
        Fix Version/s 2.3 [ 14941 ]
        Fix Version/s 2.4 [ 15664 ]
        Mauro Talevi made changes -
        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.

        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.
        Summary Add support for BigDecimal parameters Add support for BigDecimal and BigInteger parameters
        Hide
        Mauro Talevi added a comment -

        Added support for BigDecimal and BigInteger.

        Show
        Mauro Talevi added a comment - Added support for BigDecimal and BigInteger.
        Mauro Talevi made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Mauro Talevi made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Mauro Talevi made changes -
        Fix Version/s 2.3.1 [ 15921 ]
        Mauro Talevi made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: