DE-934 Setup tests on a new site #411
Annotations
9 errors and 1 warning
InvoicesControllerCreateTest.shouldCreateInvoice:
tests/src/test/java/com/maxio/advancedbilling/controllers/invoices/InvoicesControllerCreateTest.java#L278
Expecting actual:
[InvoiceDiscount [uid=dli_bjxy26875xkqx, title=Amount Discount 9220857639, description=Huuuuge amount discount: 1250, code=AMOUNT_DISCOUNT_9856110469, sourceType=Coupon, sourceId=663227, discountType=flat_amount, percentage=null, eligibleAmount=150.0, discountAmount=12.5, transactionId=null, lineItemBreakouts=[InvoiceDiscountBreakout [uid=li_bjxy26857g3h6, eligibleAmount=12.5, discountAmount=12.5, additionalProperties={}]], additionalProperties={}],
InvoiceDiscount [uid=dli_bjxy2687dtk6h, title=Super coupon with 8.5 amount., description=Super coupon with 8.5 amount., code=MY_CUSTOM_CODE, sourceType=Ad Hoc Coupon, sourceId=null, discountType=flat_amount, percentage=null, eligibleAmount=150.0, discountAmount=8.5, transactionId=null, lineItemBreakouts=[InvoiceDiscountBreakout [uid=li_bjxy2685nxc7g, eligibleAmount=22.5, discountAmount=8.5, additionalProperties={}]], additionalProperties={}]]
to contain exactly in any order:
[InvoiceDiscount [uid=null, title=Amount Discount 9220857639, description=Huuuuge amount discount: 1250, code=AMOUNT_DISCOUNT_9856110469, sourceType=Coupon, sourceId=null, discountType=flat_amount, percentage=null, eligibleAmount=150.0, discountAmount=12.5, transactionId=null, lineItemBreakouts=[InvoiceDiscountBreakout [uid=null, eligibleAmount=12.5, discountAmount=12.5, additionalProperties={}]], additionalProperties={}],
InvoiceDiscount [uid=null, title=Super coupon with 8.5 amount., description=Coupon: MY_CUSTOM_CODE - Super coupon with 8.5 amount., code=MY_CUSTOM_CODE, sourceType=Ad Hoc Coupon, sourceId=null, discountType=flat_amount, percentage=null, eligibleAmount=150.0, discountAmount=8.5, transactionId=null, lineItemBreakouts=[InvoiceDiscountBreakout [uid=null, eligibleAmount=22.5, discountAmount=8.5, additionalProperties={}]], additionalProperties={}]]
elements not found:
[InvoiceDiscount [uid=null, title=Super coupon with 8.5 amount., description=Coupon: MY_CUSTOM_CODE - Super coupon with 8.5 amount., code=MY_CUSTOM_CODE, sourceType=Ad Hoc Coupon, sourceId=null, discountType=flat_amount, percentage=null, eligibleAmount=150.0, discountAmount=8.5, transactionId=null, lineItemBreakouts=[InvoiceDiscountBreakout [uid=null, eligibleAmount=22.5, discountAmount=8.5, additionalProperties={}]], additionalProperties={}]]
and elements not expected:
[InvoiceDiscount [uid=dli_bjxy2687dtk6h, title=Super coupon with 8.5 amount., description=Super coupon with 8.5 amount., code=MY_CUSTOM_CODE, sourceType=Ad Hoc Coupon, sourceId=null, discountType=flat_amount, percentage=null, eligibleAmount=150.0, discountAmount=8.5, transactionId=null, lineItemBreakouts=[InvoiceDiscountBreakout [uid=li_bjxy2685nxc7g, eligibleAmount=22.5, discountAmount=8.5, additionalProperties={}]], additionalProperties={}]]
when comparing values using recursive field/property by field/property comparator on all fields/properties using the following configuration:
- the following fields were ignored in the comparison: uid, sourceId, lineItemBreakouts.uid
- no overridden equals methods were used in the comparison (except for java types)
- these types were compared with the following comparators:
- java.lang.Double -> DoubleComparator[precision=1.0E-15]
- java.lang.Float -> FloatComparator[precision=1.0E-6]
- java.nio.file.Path -> lexicographic comparator (Path natural order)
- actual and expected objects and their fields were compared field by field recursively even if they were not of the same type, this allows for example to compare a Person to a PersonDto (call strictTypeChecking(true) to change that behavior).
- the introspection strategy used was: DefaultRecursiveComparisonIntrospectionStrategy
|
InvoicesControllerCreateTest.:
tests/src/test/java/com/maxio/advancedbilling/controllers/invoices/InvoicesControllerCreateTest.java#L81
HTTP Response Not OK. Status code: 422. Response: '{errors:[Site data clearing is in progress. Please try later.]}'.
|
InvoicesControllerIssueTest.shouldIssuePendingInvoice:
tests/src/test/java/com/maxio/advancedbilling/controllers/invoices/InvoicesControllerIssueTest.java#L137
Expected size: 2 but was: 4 in:
{"avatax_details"=null, "debit_amount"="0.0", "debits"=[], "public_url_expires_on"="2024-10-11"}
|
InvoicesControllerIssueTest.:
tests/src/test/java/com/maxio/advancedbilling/controllers/invoices/InvoicesControllerIssueTest.java#L105
HTTP Response Not OK. Status code: 422. Response: '{errors:[Site data clearing is in progress. Please try later.]}'.
|
InvoicesControllerRefundInvoiceTest.shouldRefundSpecificSegmentOfConsolidatedInvoice:
tests/src/test/java/com/maxio/advancedbilling/controllers/invoices/InvoicesControllerRefundInvoiceTest.java#L199
Expected size: 2 but was: 4 in:
{"avatax_details"=null, "debit_amount"="0.0", "debits"=[], "public_url_expires_on"="2024-10-11"}
|
InvoicesControllerRefundInvoiceTest.shouldRefundInvoice:
tests/src/test/java/com/maxio/advancedbilling/controllers/invoices/InvoicesControllerRefundInvoiceTest.java#L108
Expected size: 2 but was: 4 in:
{"avatax_details"=null, "debit_amount"="0.0", "debits"=[], "public_url_expires_on"="2024-10-11"}
|
InvoicesControllerRefundInvoiceTest.shouldRefundConsolidatedInvoice:
tests/src/test/java/com/maxio/advancedbilling/controllers/invoices/InvoicesControllerRefundInvoiceTest.java#L146
Expected size: 2 but was: 4 in:
{"avatax_details"=null, "debit_amount"="0.0", "debits"=[], "public_url_expires_on"="2024-10-11"}
|
InvoicesControllerRefundInvoiceTest.:
tests/src/test/java/com/maxio/advancedbilling/controllers/invoices/InvoicesControllerRefundInvoiceTest.java#L85
HTTP Response Not OK. Status code: 422. Response: '{errors:[Site data clearing is in progress. Please try later.]}'.
|
test
Process completed with exit code 1.
|
test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-java@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|