package com.ads;

import com.ads.business.service.TokenService;
import com.ads.common.dingTalk.domain.UserDTO;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest
@Slf4j
public class AdsTest {


    @Resource
    private TokenService tokenService;
    @Test
    public void test1(){
        UserDTO user = tokenService.getUserById("266437676720445783");
        System.out.println("user = " + user.toString());
    }
}
