//package cn.freemud.service;
//
//import cn.freemud.base.entity.BaseResponse;
//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.openfeign.EnableFeignClients;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import static org.junit.Assert.assertEquals;
//import static org.junit.Assert.assertTrue;
//
///**
// * All rights Reserved, Designed By www.freemud.cn
// *
// * @version V1.0
// * @Title:
// * @Package: cn.freemud.service.thirdpart
// * @Description:
// * @author: biao.zhang
// * @date: 2018/12/17 16:34
// * @Copyright: 2018 www.freemud.cn Inc. All rights reserved.
// * 注意：本内容仅限于上海非码科技内部传阅，禁止外泄以及用于其他的商业目
// */
//@RunWith(SpringRunner.class)
//@SpringBootTest
//@EnableDiscoveryClient
//@EnableFeignClients
//@EnableAutoConfiguration
//public class CouponActivityServiceTest {
//    @Autowired
//    private CouponActivityService couponActivityService;
//
//    @Test
//    public void createClassifyCouponBean() {
//        ActivityClassifyCouponBean activityClassifyCouponBean = couponActivityService.createClassifyCouponBean("123124", "1864", false, 100L, 1, "1011");
//        assertTrue(activityClassifyCouponBean.getCouponNum() >= 1);
//    }
//
//    @Test
//    public void getAvailableCouponBean() {
//        BaseResponse baseResponse = couponActivityService.getAvailableCouponBean("88214124", "12342", "1864", "1011", 200L, false);
//        assertEquals(baseResponse.getCode(), "100");
//    }
//
//    @Test
//    public void verificationCoupon() {
//        BaseResponse baseResponse = couponActivityService.verificationCoupon(ActivityChannelEnum.pickup,"88123213", "1", "1864", "1011", "123", null);
//        assertEquals(baseResponse.getCode(), "100");
//    }
//}
