You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.glxp.mipsdl.admin;
|
|
|
|
|
|
|
|
import com.glxp.mipsdl.admin.client.http.ZaxyyXmlClient;
|
|
|
|
import com.glxp.mipsdl.admin.http.UHttpUtils;
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
public class JsonTest {
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void teS() {
|
|
|
|
String json1 = "{\\\"invspec\\\":\\\"\\\\\\\\\\\",\\\"invtype\\\":\\\"国械注准20163461377\\\"}";
|
|
|
|
String json = "{\\\"invname\\\":\\\"Glucose Oxidase\\\\\\\"Amano\\\\\\\" 2\\\"}";
|
|
|
|
System.out.println(json1);
|
|
|
|
System.out.println(UHttpUtils.formatResponse(json1));
|
|
|
|
}
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
ZaxyyXmlClient xmlClient;
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void teS1() {
|
|
|
|
xmlClient.testWebservice();
|
|
|
|
}
|
|
|
|
}
|