1234567891011121314151617181920212223242526 |
- package com.llisoft.pay;
- import org.junit.Test;
- import org.junit.runner.RunWith;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.boot.test.context.SpringBootTest;
- import org.springframework.test.context.junit4.SpringRunner;
- import com.llisoft.pay.service.PayWxService;
- import com.llisoft.pay.util.CodeUtil;
- @SpringBootTest
- @RunWith(SpringRunner.class)
- public class ServiceTest {
-
- @Autowired
- PayWxService wxPayService;
-
- @Test
- public void test() throws Exception{
- long begin = System.currentTimeMillis();
- System.out.println(wxPayService.pay(CodeUtil.time(), 1, "测试"));
- System.out.println("耗时:"+ (System.currentTimeMillis() - begin));
- }
-
- }
|