package kr.co.jinwoosi.clfd.clfd.sms;

import kr.co.jinwoosi.clfd.clfd.sms.service.SmsService;
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;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {
        "classpath:config/spring/context-datasource.xml",
        "classpath:config/spring/context-mybatis.xml",
        "classpath:config/spring/context-common.xml",
        "classpath:config/spring/context-transaction.xml"
})
public class SmsAuthServiceTest {
    @Autowired
    private SmsService smsService;

    @Test
    public void test() {
        for (int i=0;i<99;i++) {
            String smsAuthKey = smsService.getSmsAuthKey();
            System.out.println(smsAuthKey);
        }

    }
}
