admin
2020-11-09 18f9c27e17a4bef2f1d6571bf113b9bb741046af
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.ks.jd.giftcoupon.service;
 
import com.ks.jd.giftcoupon.util.RedisUtil;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
 
import javax.annotation.Resource;
 
@SpringBootTest
class JdGiftcouponApplicationTests {
 
    @Autowired
    private RedisUtil redisUtil;
 
    @Test
    void contextLoads() {
 
 
    }
 
    @Test
    public void log() {
        Logger logger = LoggerFactory.getLogger(JdGiftcouponApplicationTests.class);
        logger.error("错误测试");
    }
 
    @Test
    public void redis() {
        redisUtil.set("test1", "val", 1000);
//        redisUtil.del("test1");
    }
 
}