Test Scenerio comparing BigDecimal values expected result does match

Solution Verified - Updated -

Issue

Comparing two BigDecimal values in a BRMS Test Scenario does not match to two decimal places, eg 38.95 == 38.95 is false. Only whole numbers seem to match, eg 35.00 == 35.00 is true.

We tried setting scale with Big Decimal, works with JUnit, but not Test Scenario

     public BigDecimal getSubTotal() {
             return subTotal.setScale(2, RoundingMode.HALF_EVEN);
     }

Please see screenshot.

Environment

Business Rules Management System (BRMS) 5.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content