import com.chushang.GatewayApplication;
import com.chushang.gateway.service.ValidateCodeService;
import lombok.SneakyThrows;
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.SpringRunner;

/**
 * @author by zhaowenyuan create 2022/8/23 12:10
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = GatewayApplication.class)
public class RedisTest {

    @Autowired
    private ValidateCodeService validateCodeService;

    @SneakyThrows
    @Test
    public void test(){
        validateCodeService.checkCaptcha("code", "uuid");
    }

}
