init
This commit is contained in:
@@ -2,11 +2,13 @@ package com.ruoyi.test;
|
||||
|
||||
import com.ruoyi.cai.rank.RankManager;
|
||||
import com.ruoyi.cai.rank.RankNode;
|
||||
import com.ruoyi.cai.service.RankService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -20,6 +22,8 @@ public class CaiUnitTest {
|
||||
|
||||
@Autowired
|
||||
private RankManager rankManager;
|
||||
@Autowired
|
||||
private RankService rankService;
|
||||
|
||||
@Test
|
||||
public void rank(){
|
||||
@@ -36,5 +40,9 @@ public class CaiUnitTest {
|
||||
log.info("userId={}, score={}", node.getUserId(),node.getScore());
|
||||
}
|
||||
}
|
||||
@Test
|
||||
public void saveRank(){
|
||||
rankService.saveDayRank(LocalDate.now(),1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user