Skip to content

FINERACT-5707: Add unit tests for MathUtil#5707

Open
shleshaG wants to merge 1 commit intoapache:developfrom
shleshaG:develop
Open

FINERACT-5707: Add unit tests for MathUtil#5707
shleshaG wants to merge 1 commit intoapache:developfrom
shleshaG:develop

Conversation

@shleshaG
Copy link
Copy Markdown

Added comprehensive unit tests for MathUtil utility class.

Covered scenarios:

  • null handling (nullToDefault, nullToZero)
  • zero and non-zero cases (zeroToNull)
  • negative and positive values (negativeToZero, comparisons)
  • arithmetic operations (add, subtract, abs)
  • BigDecimal operations (add, subtract, percentageOf)
  • edge cases and multiple inputs

All tests pass successfully.

Copy link
Copy Markdown
Contributor

@Aman-Mittal Aman-Mittal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shleshaG Are you sure this PR is right one?

@shleshaG shleshaG changed the title FINERACT-5706: Add unit tests for MathUtil FINERACT-5707: Add unit tests for MathUtil Mar 29, 2026
@shleshaG
Copy link
Copy Markdown
Author

@Aman-Mittal Yes, thanks for pointing it out. The issue number was incorrect earlier. I have now updated the tests specifically for MathUtil under FINERACT-5707.

RequestContextHolder.setRequestAttributes(attributes);
testLogic.run();
} finally {
RequestContextHolder.resetRequestAttributes(); // critical cleanup
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Pr does not add any unit tests,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants