From 5f592601204b9e41fbc0a09a001b0c778b5a68ac Mon Sep 17 00:00:00 2001 From: djmil Date: Fri, 22 Sep 2023 16:07:54 +0200 Subject: [PATCH] ammend --- .../cordaclient/RankingTests.java | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 backend/src/test/java/djmil/cordacheckers/cordaclient/RankingTests.java diff --git a/backend/src/test/java/djmil/cordacheckers/cordaclient/RankingTests.java b/backend/src/test/java/djmil/cordacheckers/cordaclient/RankingTests.java new file mode 100644 index 0000000..ae62e18 --- /dev/null +++ b/backend/src/test/java/djmil/cordacheckers/cordaclient/RankingTests.java @@ -0,0 +1,33 @@ +package djmil.cordacheckers.cordaclient; + +import static org.assertj.core.api.Assertions.assertThat; + +import java.util.List; + +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; + +import djmil.cordacheckers.cordaclient.dao.Rank; +import djmil.cordacheckers.user.HoldingIdentityResolver; + +@SpringBootTest +public class RankingTests { + @Autowired + CordaClient cordaClient; + + @Autowired + HoldingIdentityResolver holdingIdentityResolver; + + @Test + void testGlobalRanking() { + final var hiCustodian = holdingIdentityResolver.getCustodian(); + + final List liderboard = cordaClient.fetchRanking(hiCustodian); + + System.out.println("Liderboard " +liderboard); + + + } + +}