package com.ruoyi.api;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.api.constant.yz.HttpConstant;
import com.ruoyi.api.downstream.YzResult;
import com.ruoyi.api.exception.BusinessException;
import com.ruoyi.api.result.ResponseEnum;
import com.ruoyi.api.service.ITokenService;
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;
import org.springframework.util.ObjectUtils;

@SpringBootTest
@RunWith(SpringRunner.class)
public class TokenTests {
    @Autowired
    private ITokenService tokenService;

    @Test
    public void testGetToken() throws JsonProcessingException {
        String token = tokenService.getToken();
        System.out.println(token);
    }
}
