添加详细流水标签日志说明文档记录项目

This commit is contained in:
wkc
2026-03-17 14:33:23 +08:00
parent 7f967cd759
commit 3100b36906
3 changed files with 784 additions and 0 deletions

View File

@@ -1,7 +1,10 @@
package com.ruoyi.ccdi.project.mapper;
import org.junit.jupiter.api.Test;
import org.xml.sax.InputSource;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.StringReader;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
@@ -39,6 +42,15 @@ class CcdiBankTagAnalysisMapperXmlTest {
assertTrue(xml.contains("selectLargeTransferStatements"));
}
@Test
void analysisMapperXml_shouldBeWellFormed() throws Exception {
String xml = readXml(RESOURCE);
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(false);
factory.setValidating(false);
factory.newDocumentBuilder().parse(new InputSource(new StringReader(xml)));
}
private String readXml(String resource) throws Exception {
try (InputStream inputStream = getClass().getClassLoader().getResourceAsStream(resource)) {
return new String(inputStream.readAllBytes(), StandardCharsets.UTF_8);