| | |
| | | package com.gs.dingtalk; |
| | | |
| | | import com.gs.dingtalk.config.URLEncoder; |
| | | import com.gs.dingtalk.service.SendDingtalkService; |
| | | import com.gs.dingtalk.service.SimpleExample; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | |
| | | import java.math.BigDecimal; |
| | |
| | | @SpringBootTest |
| | | class DeviceReceivingApplicationTests { |
| | | |
| | | |
| | | @Autowired |
| | | private SimpleExample simpleExample; |
| | | |
| | | @Autowired |
| | | private SendDingtalkService sendDingtalkService; |
| | | |
| | | @Test |
| | | void contextLoads() { |
| | |
| | | String encode = URLEncoder.encode(""); |
| | | System.out.println(encode); |
| | | } |
| | | |
| | | @Test |
| | | void getPhone() throws Exception { |
| | | sendDingtalkService.getDingTalkUserId(); |
| | | } |
| | | |
| | | @Test |
| | | void sendDingTalk() throws Exception { |
| | | sendDingtalkService.sendDingTalkFiveMinute(); |
| | | } |
| | | |
| | | //chatSendMessage |
| | | @Test |
| | | void chatSendMessage() throws Exception { |
| | | sendDingtalkService.chatSendMessage(); |
| | | } |
| | | } |