...
|
...
|
@@ -8,6 +8,7 @@ import org.springframework.test.context.ContextConfiguration; |
|
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
|
|
|
import com.yoho.message.sdk.service.order.ISendOrderMessage;
|
|
|
import com.yoho.message.sdk.service.user.ISendUserMessage;
|
|
|
|
|
|
@RunWith(SpringJUnit4ClassRunner.class)
|
|
|
@ContextConfiguration(locations = { "classpath*:META-INF/spring/test-message-sdk-*.xml" })
|
...
|
...
|
@@ -16,8 +17,21 @@ public class TestSendOrderMessage { |
|
|
@Resource
|
|
|
ISendOrderMessage sendOrderMessage;
|
|
|
|
|
|
@Resource
|
|
|
ISendUserMessage sendUserMessage;
|
|
|
|
|
|
@Test
|
|
|
public void firstOrderGetCoupon() {
|
|
|
sendOrderMessage.firstOrderGetCoupon("20422396", "1611776769");
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
public void membershipUpgrade() {
|
|
|
sendUserMessage.membershipUpgrade("test", "6", "20422396");
|
|
|
}
|
|
|
|
|
|
@Test
|
|
|
public void orderSendOut() {
|
|
|
sendOrderMessage.orderSendOut("20422396", "1611776769", "顺丰", "123456789");
|
|
|
}
|
|
|
} |
...
|
...
|
|