Test Scenerio comparing BigDecimal values expected result does match
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
