啊鑫
2024-11-18 f61d65290e3d7ba23432a9a017065af0e0636a1a
src/test/java/com/gs/dingtalk/DeviceReceivingApplicationTests.java
@@ -1,7 +1,10 @@
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;
@@ -10,6 +13,12 @@
@SpringBootTest
class DeviceReceivingApplicationTests {
    @Autowired
    private SimpleExample simpleExample;
    @Autowired
    private SendDingtalkService sendDingtalkService;
    @Test
    void contextLoads() {
@@ -30,4 +39,20 @@
        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();
    }
}