package com.liquidnet.service.chime.test;

import com.liquidnet.service.chime.utils.RedisDataUtil;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author AnJiabin <anjiabin@zhengzai.tv>
 * @version V1.0
 * @Description: TODO
 * @class: TestRedisUtils
 * @Package com.liquidnet.service.chime.test
 * @Copyright: LightNet @ Copyright (c) 2021
 * @date 2021/9/22 15:44
 */
@Slf4j
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class TestRedisUtils {
    @Autowired
    private RedisDataUtil redisDataUtil;

    @Test
    public void test(){
        boolean isAllow = redisDataUtil.isPassedByPerformanceId("123");
        log.info("isAllow:{}",isAllow);
        boolean isCityAllow = redisDataUtil.isPassedByCityName("123");
        log.info("isCityAllow:{}",isCityAllow);
    }
}
