Skip to content

Commit

Permalink
test fixtures refactorings
Browse files Browse the repository at this point in the history
  • Loading branch information
shtukas committed Sep 26, 2024
1 parent 5f398b3 commit 1d97779
Show file tree
Hide file tree
Showing 119 changed files with 85,358 additions and 14,943 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ object Estimation {
ratePlans match {
case Nil =>
Left(
s"[error 93a21a48] Subscription ${subscription.subscriptionNumber} was found to have zero newsPaperDeliveryRatePlans making determination of rate plan name impossible"
s"[error 93a21a48] Subscription ${subscription.subscriptionNumber} was found to have zero RatePlans making determination of rate plan name impossible"
)
case ratePlan :: Nil => {
(for {
Expand All @@ -88,7 +88,7 @@ object Estimation {
}
case _ =>
Left(
s"[error 93a21a48] Subscription ${subscription.subscriptionNumber} was found to have more than one newsPaperDeliveryRatePlans making determination of rate plan name impossible"
s"[error 93a21a48] Subscription ${subscription.subscriptionNumber} was found to have more than one RatePlans making determination of rate plan name impossible"
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion lambda/src/test/resources/Convention.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Use the `Core` directory for engine core functions and `Migrations` for migration specific tests.
Use the `Core` directory for engine core functions (including testing the model), `Handlers` to test the various handlers and `Migrations` for migration specific tests.
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
{
"accountId": "accId",
"invoiceItems": [
{
"id": "itemId",
"subscriptionName": "A-S12345678",
"subscriptionId": "subId",
"subscriptionNumber": "A-S12345678",
"serviceStartDate": "2020-05-28",
"serviceEndDate": "2020-06-27",
"chargeAmount": 5.99,
"chargeDescription": "",
"chargeName": "Monday",
"chargeNumber": "C-01467522",
"chargeId": "chargeId",
"productName": "Newspaper Voucher",
"quantity": 1,
"taxAmount": 0E-9,
"unitOfMeasure": "",
"chargeDate": "2020-05-06 10:33:28",
"chargeType": "Recurring",
"processingType": "Charge",
"appliedToItemId": null
},
{
"id": "itemId",
"subscriptionName": "A-S12345678",
"subscriptionId": "subId",
"subscriptionNumber": "A-S12345678",
"serviceStartDate": "2020-05-28",
"serviceEndDate": "2020-06-27",
"chargeAmount": 5.99,
"chargeDescription": "",
"chargeName": "Tuesday",
"chargeNumber": "C-01467523",
"chargeId": "chargeId",
"productName": "Newspaper Voucher",
"quantity": 1,
"taxAmount": 0E-9,
"unitOfMeasure": "",
"chargeDate": "2020-05-06 10:33:28",
"chargeType": "Recurring",
"processingType": "Charge",
"appliedToItemId": null
},
{
"id": "itemId",
"subscriptionName": "A-S12345678",
"subscriptionId": "subId",
"subscriptionNumber": "A-S12345678",
"serviceStartDate": "2020-05-28",
"serviceEndDate": "2020-06-27",
"chargeAmount": 8.68,
"chargeDescription": "",
"chargeName": "Saturday",
"chargeNumber": "C-01467524",
"chargeId": "chargeId",
"productName": "Newspaper Voucher",
"quantity": 1,
"taxAmount": 0E-9,
"unitOfMeasure": "",
"chargeDate": "2020-05-06 10:33:28",
"chargeType": "Recurring",
"processingType": "Charge",
"appliedToItemId": null
},
{
"id": "itemId",
"subscriptionName": "A-S12345678",
"subscriptionId": "subId",
"subscriptionNumber": "A-S12345678",
"serviceStartDate": "2020-05-28",
"serviceEndDate": "2020-06-27",
"chargeAmount": 5.99,
"chargeDescription": "",
"chargeName": "Thursday",
"chargeNumber": "C-01467525",
"chargeId": "chargeId",
"productName": "Newspaper Voucher",
"quantity": 1,
"taxAmount": 0E-9,
"unitOfMeasure": "",
"chargeDate": "2020-05-06 10:33:28",
"chargeType": "Recurring",
"processingType": "Charge",
"appliedToItemId": null
},
{
"id": "itemId",
"subscriptionName": "A-S12345678",
"subscriptionId": "subId",
"subscriptionNumber": "A-S12345678",
"serviceStartDate": "2020-05-28",
"serviceEndDate": "2020-06-27",
"chargeAmount": 5.99,
"chargeDescription": "",
"chargeName": "Friday",
"chargeNumber": "C-01467526",
"chargeId": "chargeId",
"productName": "Newspaper Voucher",
"quantity": 1,
"taxAmount": 0E-9,
"unitOfMeasure": "",
"chargeDate": "2020-05-06 10:33:28",
"chargeType": "Recurring",
"processingType": "Charge",
"appliedToItemId": null
},
{
"id": "itemId",
"subscriptionName": "A-S12345678",
"subscriptionId": "subId",
"subscriptionNumber": "A-S12345678",
"serviceStartDate": "2020-05-28",
"serviceEndDate": "2020-06-27",
"chargeAmount": 5.99,
"chargeDescription": "",
"chargeName": "Wednesday",
"chargeNumber": "C-01467527",
"chargeId": "chargeId",
"productName": "Newspaper Voucher",
"quantity": 1,
"taxAmount": 0E-9,
"unitOfMeasure": "",
"chargeDate": "2020-05-06 10:33:28",
"chargeType": "Recurring",
"processingType": "Charge",
"appliedToItemId": null
},
{
"id": "itemId",
"subscriptionName": "A-S12345678",
"subscriptionId": "subId",
"subscriptionNumber": "A-S12345678",
"serviceStartDate": "2020-05-28",
"serviceEndDate": "2020-06-27",
"chargeAmount": 8.99,
"chargeDescription": "",
"chargeName": "Sunday",
"chargeNumber": "C-01467528",
"chargeId": "chargeId",
"productName": "Newspaper Voucher",
"quantity": 1,
"taxAmount": 0E-9,
"unitOfMeasure": "",
"chargeDate": "2020-05-06 10:33:28",
"chargeType": "Recurring",
"processingType": "Charge",
"appliedToItemId": null
}
],
"success": true
}
Loading

0 comments on commit 1d97779

Please sign in to comment.