24 lines
456 B
Java
24 lines
456 B
Java
package com.evotech.hd.wechat;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
import com.evotech.hd.wechat.service.AccessTokenService;
|
|
|
|
import jakarta.annotation.Resource;
|
|
|
|
@SpringBootTest
|
|
class WechatServerApplicationTests {
|
|
|
|
@Resource
|
|
private AccessTokenService accessTokenService;
|
|
|
|
|
|
@Test
|
|
void contextLoads() {
|
|
String res = accessTokenService.getAccessToken();
|
|
System.out.println(res);
|
|
}
|
|
|
|
}
|