-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixes for unit tests after moving to falling yaci not via REST b…
…ut internal method invocation changes.
- Loading branch information
Mateusz Czeladka
committed
Dec 1, 2023
1 parent
c0d66f5
commit 5e77d53
Showing
4 changed files
with
74 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ower-app/src/test/java/org/cardano/foundation/voting/api/VotingLedgerFollowerAppTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.cardano.foundation.voting.api; | ||
|
||
import com.bloxbean.cardano.yaci.store.blocks.service.BlockService; | ||
import com.bloxbean.cardano.yaci.store.transaction.service.TransactionService; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Primary; | ||
|
||
import static org.mockito.Mockito.mock; | ||
|
||
@Configuration | ||
@Slf4j | ||
public class VotingLedgerFollowerAppTest { | ||
|
||
@Bean | ||
@Primary | ||
public BlockService blockService() { | ||
log.info("Mocking Yaci's BlockService..."); | ||
return mock(BlockService.class); | ||
} | ||
|
||
@Bean | ||
@Primary | ||
public TransactionService transactionService() { | ||
log.info("Mocking Yaci's TransactionService..."); | ||
return mock(TransactionService.class); | ||
} | ||
|
||
} |