Skip to content

Commit cf87d47

Browse files
author
Mateusz Czeladka
committed
fix: hot fix for a wrong import.
1 parent 9d59cc0 commit cf87d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/src/test/java/org/cardanofoundation/rosetta/api/block/service/LedgerBlockServiceImplTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ void populateTransaction_populatesDelegations() {
199199
List<DelegationEntity> delegations = List.of(entity1, entity2);
200200

201201
when(transactionMapper.mapDelegationEntityToDelegation(entity1))
202-
.thenReturn(new Delegation());
202+
.thenReturn(new StakePoolDelegation());
203203

204204
val transactionInfo = new LedgerBlockServiceImpl.TransactionInfo(
205205
Collections.emptyList(),
@@ -211,7 +211,7 @@ void populateTransaction_populatesDelegations() {
211211
);
212212

213213
ledgerBlockService.populateTransaction(transaction, transactionInfo, utxoMap);
214-
assertThat(transaction.getDelegations().size()).isEqualTo(1);
214+
assertThat(transaction.getStakePoolDelegations().size()).isEqualTo(1);
215215
}
216216

217217
@Test

0 commit comments

Comments
 (0)