Skip to content

Commit fe6fe43

Browse files
fix test
1 parent 7197d52 commit fe6fe43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/it/gov/pagopa/idpay/transactions/repository/RewardBatchSpecificRepositoryImplTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ void moveSuspendToNewBatch_ok_shouldMoveCountersAndAmounts() {
945945
assertNotNull(oldAfter);
946946
assertNotNull(newAfter);
947947

948-
assertEquals(0, oldAfter.getInitialAmountCents());
948+
assertEquals(150L, oldAfter.getInitialAmountCents());
949949
assertEquals(0, oldAfter.getSuspendedAmountCents());
950950
assertEquals(ZERO_LONG, oldAfter.getNumberOfTransactions());
951951
assertEquals(ZERO_LONG, oldAfter.getNumberOfTransactionsSuspended());
@@ -979,7 +979,7 @@ void moveSuspendToNewBatch_newBatchNotFound_returnsBadRequest_andOldWasDecrement
979979
RewardBatch oldBatch = rewardBatchRepository.findById("batch1").block();
980980
assertNotNull(oldBatch);
981981

982-
oldBatch.setInitialAmountCents(accrued);
982+
oldBatch.setInitialAmountCents(ONE_LONG);
983983
oldBatch.setSuspendedAmountCents(accrued);
984984
oldBatch.setNumberOfTransactions(ONE_LONG);
985985
oldBatch.setNumberOfTransactionsSuspended(ONE_LONG);
@@ -1000,7 +1000,7 @@ void moveSuspendToNewBatch_newBatchNotFound_returnsBadRequest_andOldWasDecrement
10001000
RewardBatch oldAfter = rewardBatchRepository.findById("batch1").block();
10011001
assertNotNull(oldAfter);
10021002

1003-
assertEquals(ZERO_LONG, oldAfter.getInitialAmountCents());
1003+
assertEquals(ONE_LONG, oldAfter.getInitialAmountCents());
10041004
assertEquals(ZERO_LONG, oldAfter.getSuspendedAmountCents());
10051005
assertEquals(ZERO_LONG, oldAfter.getNumberOfTransactions());
10061006
assertEquals(ZERO_LONG, oldAfter.getNumberOfTransactionsSuspended());

0 commit comments

Comments
 (0)