package com.nokia.dingtalk_auto;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import com.nokia.common.dingtalk.DingTalkUtil;
import com.nokia.common.dingtalk.exception.DingTalkApiException;

@SpringBootTest
public class DingTalkAutoTest {

    @Autowired
    private DingTalkUtil tslTaskDingTalkUtil;

    @Test
    void test() throws DingTalkApiException {
        String mediaId = tslTaskDingTalkUtil.upload("D:/src/20230505-7-响应率.png", "image");
        tslTaskDingTalkUtil.sendImageMsgWithRobot(mediaId);
    }

}
