package io.geekidea.springbootplus.test;

import com.wecloud.im.entity.ImConversation;
import com.wecloud.im.mapper.ImConversationMapper;
import com.wecloud.im.vo.MyConversationListVo;
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;

import java.util.List;

/**
 * imConversation 单元测试
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest
public class ImConversationTest {

    @Autowired
    private ImConversationMapper imConversationMapper;

    @Test
    public void listConversation() {
        List<MyConversationListVo> myImConversationList = imConversationMapper.getMyImConversationListAndMsgCount(1394579719625773056L);


        List<ImConversation> myImConversationList1 = imConversationMapper.getMyImConversationList(1394579719625773056L);
    }
}
