| 1234567891011121314151617181920212223242526 |
- package com.izouma.nineth.service.sms;
- import com.izouma.nineth.ApplicationTests;
- import org.junit.Test;
- import org.springframework.beans.factory.annotation.Autowired;
- public class SmsServiceTest extends ApplicationTests {
- @Autowired
- private SmsService smsService;
- @Test
- public void send() {
- String sessionId = smsService.sendVerify("15077886171");
- System.out.println(sessionId);
- }
- @Test
- public void verify() throws SmsService.SmsVerifyException {
- smsService.verify("15077886171", "5274");
- }
- @Test
- public void sellOut(){
- smsService.sellOut("18205083565");
- }
- }
|