Tier 4 — LoanPaymentPostingService unit tests

Testkamolos
Shipped
May 29, 2026 at 12:13 AM UTC
Author
Kamo
Commit
58d402a

Six mocked-repository unit tests covering the heart of the payment posting: - **************** payment of $100 against loan with $25 fees / $50 interest / large principal balance → exact 25/50/25 fees/interest/principal allocation per Reg Z. - **************** DELINQUENT loan with future-due-date receiving a payment → ACTIVE + D0. - **************** balance hits zero → PAID_OFF + paidOffAt set. - **************** previously- SUCCEEDED $100 principal payment returned → balance restored to $1000 + $25 NSF assessed. - **************** PENDING_DISBURSEMENT INSTALLMENT → ACTIVE, principalBalance = principal, nextPaymentDueAt set, lastAccrualDate = today. - **************** PENDING_DISBURSEMENT REVOLVING_LOC → ACTIVE, principalBalance = 0, lastAccrualDate = today (regression test for T1.6). 36 total tests passing.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing