FINERACT-2389: Fix the handling of nullable field overrides
This commit is contained in:
committed by
Adam Saghy
parent
b32837e9b4
commit
adc4ee3545
@@ -0,0 +1,58 @@
|
||||
@LoanOverrideFields
|
||||
Feature: LoanOverrideFields
|
||||
|
||||
Scenario: Verify that all nullable fields default to product when overrides not allowed and not provided
|
||||
When Admin sets the business date to the actual date
|
||||
When Admin creates a client with random data
|
||||
When Admin creates a new Loan with the following override data:
|
||||
| loanProduct | LP1_NO_OVERRIDES |
|
||||
| inArrearsTolerance | null |
|
||||
| graceOnPrincipalPayment | null |
|
||||
| graceOnInterestPayment | null |
|
||||
| graceOnArrearsAgeing | null |
|
||||
Then LoanDetails has "inArrearsTolerance" field with value: "10"
|
||||
Then LoanDetails has "graceOnPrincipalPayment" field with value: "1"
|
||||
Then LoanDetails has "graceOnInterestPayment" field with value: "1"
|
||||
Then LoanDetails has "graceOnArrearsAgeing" field with value: "3"
|
||||
|
||||
Scenario: Verify that all nullable fields ignore overrides when overrides not allowed
|
||||
When Admin sets the business date to the actual date
|
||||
When Admin creates a client with random data
|
||||
When Admin creates a new Loan with the following override data:
|
||||
| loanProduct | LP1_NO_OVERRIDES |
|
||||
| inArrearsTolerance | 11 |
|
||||
| graceOnPrincipalPayment | 2 |
|
||||
| graceOnInterestPayment | 2 |
|
||||
| graceOnArrearsAgeing | 4 |
|
||||
Then LoanDetails has "inArrearsTolerance" field with value: "10"
|
||||
Then LoanDetails has "graceOnPrincipalPayment" field with value: "1"
|
||||
Then LoanDetails has "graceOnInterestPayment" field with value: "1"
|
||||
Then LoanDetails has "graceOnArrearsAgeing" field with value: "3"
|
||||
|
||||
Scenario: Verify that nullable fields default to product when override is allowed but not provided
|
||||
When Admin sets the business date to the actual date
|
||||
When Admin creates a client with random data
|
||||
When Admin creates a new Loan with the following override data:
|
||||
| loanProduct | LP1_WITH_OVERRIDES |
|
||||
| inArrearsTolerance | null |
|
||||
| graceOnPrincipalPayment | null |
|
||||
| graceOnInterestPayment | null |
|
||||
| graceOnArrearsAgeing | null |
|
||||
Then LoanDetails has "inArrearsTolerance" field with value: "10"
|
||||
Then LoanDetails has "graceOnPrincipalPayment" field with value: "1"
|
||||
Then LoanDetails has "graceOnInterestPayment" field with value: "1"
|
||||
Then LoanDetails has "graceOnArrearsAgeing" field with value: "3"
|
||||
|
||||
Scenario: Verify that nullable fields default to product when override is allowed and provided
|
||||
When Admin sets the business date to the actual date
|
||||
When Admin creates a client with random data
|
||||
When Admin creates a new Loan with the following override data:
|
||||
| loanProduct | LP1_WITH_OVERRIDES |
|
||||
| inArrearsTolerance | 11 |
|
||||
| graceOnPrincipalPayment | 2 |
|
||||
| graceOnInterestPayment | 2 |
|
||||
| graceOnArrearsAgeing | 4 |
|
||||
Then LoanDetails has "inArrearsTolerance" field with value: "11"
|
||||
Then LoanDetails has "graceOnPrincipalPayment" field with value: "2"
|
||||
Then LoanDetails has "graceOnInterestPayment" field with value: "2"
|
||||
Then LoanDetails has "graceOnArrearsAgeing" field with value: "4"
|
||||
Reference in New Issue
Block a user