package org.fanli.push;
|
|
import org.junit.Test;
|
|
import com.yeshi.fanli.exception.PushException;
|
import com.yeshi.fanli.exception.push.PushCouponException;
|
import com.yeshi.fanli.service.inter.push.PushCouponService;
|
import com.yeshi.fanli.util.BeanUtil;
|
|
public class SystemCouponServiceTest {
|
|
@Test
|
public void test3() {
|
|
PushCouponService service = BeanUtil.getBean(PushCouponService.class);
|
|
try {
|
// 推送券
|
service.executePush(5L);
|
|
} catch (PushCouponException e) {
|
e.printStackTrace();
|
} catch (PushException e) {
|
e.printStackTrace();
|
} catch (Exception e) {
|
e.printStackTrace();
|
}
|
|
}
|
|
|
}
|