|
@@ -33,13 +33,8 @@ public class TestJson {
|
|
|
// public static final String debugStr = "";
|
|
|
// public static final String sendUrl = "http://wlhy.org.cn/wlhy-exchange-kafka/message/send";
|
|
|
|
|
|
- public static void sendTest() {
|
|
|
- for (String[] user1 : usersArr) {
|
|
|
- users.add(user1);
|
|
|
- }
|
|
|
- for (int i = 0; i < users.size(); i++) {
|
|
|
- roots.add(loginRoot(users.get(i)[0], users.get(i)[1], users.get(i)[2], debugStr));
|
|
|
- }
|
|
|
+ public void sendTest() {
|
|
|
+ loginRoot("23106960", "qweasd!@#123", "91210804MA10FPAM2G", "debugSystem");
|
|
|
}
|
|
|
|
|
|
public static Root testDispatch() {
|
|
@@ -388,7 +383,7 @@ public class TestJson {
|
|
|
|
|
|
static List<String[]> users = new ArrayList<>();
|
|
|
|
|
|
- public static Map<String, String> login(String userName, String password, String debug) {
|
|
|
+ public Map<String, String> login(String userName, String password, String debug) {
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
|
|
|
try {
|
|
@@ -427,7 +422,7 @@ public class TestJson {
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
- public static Root loginRoot(String userName, String password, String uscc, String debug) {
|
|
|
+ public Root loginRoot(String userName, String password, String uscc, String debug) {
|
|
|
Map<String, String> token = login(userName, password, debug);
|
|
|
Root edmRoot = new Root();
|
|
|
edmRoot.setToken(token.get("token"));
|