package com.liquidnet.service.chime.test;

import com.liquidnet.common.third.easemob.util.EasemobUtil;
import lombok.extern.slf4j.Slf4j;
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.SpringJUnit4ClassRunner;

/**
 * @author AnJiabin <anjiabin@zhengzai.tv>
 * @version V1.0
 * @Description: TODO
 * @class: TestEasemob
 * @Package com.liquidnet.service.chime.test
 * @Copyright: LightNet @ Copyright (c) 2021
 * @date 2021/9/7 11:35
 */
@Slf4j
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class TestEasemob {
    @Autowired
    private EasemobUtil easemobUtil;

//    @Value("${liquidnet.easemob.api-url}")
//    private static String REQUEST_HOST = "https://a1.easemob.com";
//    @Value("${liquidnet.easemob.org-name}")
//    private static String ORG_NAME = "1106210901175651";
//    @Value("${liquidnet.easemob.app-name}")
//    private static String APP_NAME = "demo";
//    @Value("${liquidnet.easemob.client-id}")
//    private static String CLIENT_ID = "YXA6x4Xs7cYDQcOv6BPuM3hUDA";
//    @Value("${liquidnet.easemob.client-secret}")
//    private static String CLIENT_SECRET = "YXA6olr2qaW65xlkFixS81kiWnplrW4";
    @Test
    public void createUser(){
        easemobUtil.createUser("anjiabin11","anjiabin11");
//        EasemobUtil.createUsers();
    }
}
