TestPromotionMessage.java
957 Bytes
package com.yoho.message.sdk.test;
import com.yoho.message.sdk.service.promotion.ISendPromotionMessage;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
* Created by yoho on 2017/6/27.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath*:META-INF/spring/test-message-sdk-*.xml" })
public class TestPromotionMessage {
@Autowired
private ISendPromotionMessage sendPromotionMessage;
@Test
public void testInviteCouponWait() {
sendPromotionMessage.inviteCouponWait("50002614", "170183676", "50元优惠券", "1234567");
}
@Test
public void testInviteCouponSend() {
sendPromotionMessage.inviteCouponSend("50002614", "1234567", "50元优惠券", "1234567");
}
}