This commit is contained in:
djmil 2023-09-22 16:07:54 +02:00
parent fe1708ad32
commit 5f59260120

View File

@ -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<Rank> liderboard = cordaClient.fetchRanking(hiCustodian);
System.out.println("Liderboard " +liderboard);
}
}