admin
2019-03-14 eed607d87b2eee1f09b4a28da614f3ad0b46601d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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();
        }
        
    }
    
 
}