Skip to content

Commit

Permalink
P4PU-739 fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe-LaManna committed Dec 3, 2024
1 parent 03100b1 commit 07cdbe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ void givenWrongDateStringWhenCallDateStringToZonedDateTimeThenReturnException(){

@ParameterizedTest
@MethodSource("valueSource")
void givenCalculateTotalAmountWhenThen(Long amount, Long fee, Long totalAmount) {
void givenCalculateTotalAmountWhenThen(Long amount, Long fee, Long expectedTotalAmount) {
//when
Long totalAmountResult = MapperUtilities.calculateTotalAmount(amount, fee);
//then
assertEquals(totalAmount, totalAmountResult);
assertEquals(expectedTotalAmount, totalAmountResult);
}

static Stream<Arguments> valueSource() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void givenAmountAndFeeWhenCalculateTotalAmountThenReturnTotalAmount() {
.rrn("51561651")
.noticeDate("2024-06-27T13:07:25Z")
.pspName("Worldline Merchant Services Italia S.p.A.")
.amount("58L")
.amount("58")
.fee("0.29")
.origin(Origin.PM)
.build();
Expand All @@ -130,7 +130,7 @@ void givenAmountAndNullFeeWhenCalculateTotalAmountThenReturnTotalAmount() {
.rrn("51561651")
.noticeDate("2024-06-27T13:07:25Z")
.pspName("Worldline Merchant Services Italia S.p.A.")
.amount("58L")
.amount("58")
.fee(null)
.origin(Origin.PM)
.build();
Expand Down

0 comments on commit 07cdbe4

Please sign in to comment.