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); + + + } + +}