admin
2022-04-26 36681e15e12aaa9135f69260472de65303cdcba3
app/src/test/java/test/goldcorn/GoldCornTest.java
@@ -10,6 +10,7 @@
import com.yeshi.makemoney.app.exception.user.UserInfoException;
import com.yeshi.makemoney.app.service.inter.goldcorn.GoldCornGetRecordService;
import com.yeshi.makemoney.app.service.inter.goldcorn.GoldCornMakeService;
import com.yeshi.makemoney.app.service.inter.goldcorn.GoldCornSettleService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@@ -31,6 +32,9 @@
    @Resource
    private GoldCornMakeService goldCornMakeService;
    @Resource
    private GoldCornSettleService goldCornSettleService;
    @Test
    public void addGoldRecord() throws GoldCornGetRecordException {
@@ -83,5 +87,10 @@
        }
    }
    @Test
    public void settle(){
        goldCornSettleService.startSettle(new Date(System.currentTimeMillis()-1000*60*60*24L));
    }
}