TestDemo.java
1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.huaheng.test;
import com.alibaba.fastjson.JSONObject;
import com.huaheng.api.jindie.InvokeHelper;
import com.huaheng.api.jindie.domain.login.Login;
import com.huaheng.api.jindie.domain.purchase.PurchasePushData;
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 org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
@SpringBootTest
@RunWith(SpringRunner.class)
public class TestDemo {
@Resource
private InvokeHelper invokeHelper;
@Test
public void login() throws Exception {
Login login=new Login();
login.setAcctID("630b2eb5ee7f8d");
login.setUsername("13560088336");
login.setPassword("123456789");
login.setLcid("2052");
if(InvokeHelper.Login(login)){
// invokeHelper.Push("CGSL001049");
// System.out.println("===========Push============");
// invokeHelper.Select("CGSL001049");
// System.out.println("===========Select============");
// invokeHelper.Save("CGSL001049");
// System.out.println("===========Save============");
// invokeHelper.Submit("CGSL001049");
// System.out.println("===========Submit============");
invokeHelper.Audit("CGSL001049");
System.out.println("===========Audit============");
// invokeHelper.Delete("CGSL001049");
}
}
}