SmsServiceTest.java 640 B

1234567891011121314151617181920212223242526
  1. package com.izouma.nineth.service.sms;
  2. import com.izouma.nineth.ApplicationTests;
  3. import org.junit.Test;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. public class SmsServiceTest extends ApplicationTests {
  6. @Autowired
  7. private SmsService smsService;
  8. @Test
  9. public void send() {
  10. String sessionId = smsService.sendVerify("15077886171");
  11. System.out.println(sessionId);
  12. }
  13. @Test
  14. public void verify() throws SmsService.SmsVerifyException {
  15. smsService.verify("15077886171", "5274");
  16. }
  17. @Test
  18. public void sellOut(){
  19. smsService.sellOut("18205083565");
  20. }
  21. }