修改名字一致性
This commit is contained in:
@@ -51,7 +51,7 @@ public class ExchangeServiceImplTest {
|
||||
"</PSDT>\r\n" +
|
||||
"</FLOP>\r\n" +
|
||||
"</MSG>";
|
||||
String jsonString = exchangeService.xmlToJson(xmlString);
|
||||
String jsonString = exchangeService.xmlstrToJson(xmlString);
|
||||
System.out.println(jsonString);
|
||||
|
||||
//assertThat(jsonPath("$.", matcher)).
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ToolTest {
|
||||
try {
|
||||
for(Cminmsg x : lsCmin)
|
||||
{
|
||||
String json = exchangeService.xmlToJson(x.getCminmsgsClobMsg());
|
||||
String json = exchangeService.xmlstrToJson(x.getCminmsgsClobMsg());
|
||||
Msg msg;
|
||||
|
||||
msg = JsonUtil.getObject(json,Msg.class);
|
||||
@@ -121,7 +121,7 @@ public class ToolTest {
|
||||
//
|
||||
File f = new File(path.toString());
|
||||
try (FileOutputStream fop = new FileOutputStream(f)) {
|
||||
String jsonString = exchangeService.xmlToJson(x.getCminmsgsClobMsg());
|
||||
String jsonString = exchangeService.xmlstrToJson(x.getCminmsgsClobMsg());
|
||||
jsonString = jsonString.replace("\"noNamespaceSchemaLocation\":\"unisysaodbsis.xsd\",", "");
|
||||
byte[] contentInBytes = jsonString.getBytes("UTF-8");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user