/**
 * All rights Reserved, Designed By www.freemud.cn
 *
 * @Title: WeChatServiceTest
 * @Package cn.freemud.service
 * @Description:
 * @author: liming.guo
 * @date: 2018/6/6 16:35
 * @version V1.0
 * @Copyright: 2018 www.freemud.cn Inc. All rights reserved.
 * 注意：本内容仅限于上海非码科技内部传阅，禁止外泄以及用于其他的商业目
 */
package cn.freemud.service;

import cn.freemud.entities.dto.UserLoginInfoDto;
import cn.freemud.service.process.WechatPush.WechatPushProcessor;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
@EnableDiscoveryClient
@EnableFeignClients
@EnableAutoConfiguration
public class WechatPushProcessorTest {
    @Autowired
    private WechatPushProcessor wechatPushProcessor;

    @Test
    public void syncStatusOrderCreateTest() {
        UserLoginInfoDto userLoginInfoDto = new UserLoginInfoDto();
        userLoginInfoDto.setWxAppid("wxb78fb7c6218cb52c");
        userLoginInfoDto.setSessionKey("G9m9zqlrTeNAqtmclsqkPg\u003d\u003d");
        userLoginInfoDto.setMobile("15956904546");
        userLoginInfoDto.setPartnerId("1864");
        userLoginInfoDto.setNewMemeber(false);
        userLoginInfoDto.setUnionId("okRmn1I4WUvHfcBNkPQ15ydnSJDA");
        userLoginInfoDto.setOpenId("oORZK5JfpU-MkOV_tDFff8rz8ook");
        String oId = "142674066768146957";
        String companyId = "1864";
//        Assert.assertTrue( wechatPushProcessor.statusOrderCreate(userLoginInfoDto, oId,companyId) );

    }
}
