Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
be-dzxt-open
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WeiCong
be-dzxt-open
Commits
41f34db7
Commit
41f34db7
authored
Sep 11, 2019
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
演示系统第4次提交
parent
db71369f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
75 additions
and
0 deletions
+75
-0
dzxt-bean.jar
be-dzxt-test/lib/dzxt-bean.jar
+0
-0
dzxt.jar
be-dzxt-test/lib/dzxt.jar
+0
-0
Elcs_720_001_01Test.java
...zxt-test/src/com/brilliance/pack/Elcs_720_001_01Test.java
+69
-0
PackTest.java
be-dzxt-test/src/com/brilliance/pack/PackTest.java
+6
-0
电子信用证报文处理子系统使用说明.docx
doc/电子信用证报文处理子系统使用说明.docx
+0
-0
No files found.
be-dzxt-test/lib/dzxt-bean.jar
View file @
41f34db7
No preview for this file type
be-dzxt-test/lib/dzxt.jar
View file @
41f34db7
No preview for this file type
be-dzxt-test/src/com/brilliance/pack/Elcs_720_001_01Test.java
0 → 100644
View file @
41f34db7
package
com
.
brilliance
.
pack
;
import
java.util.LinkedList
;
import
java.util.List
;
import
org.junit.Before
;
import
org.junit.Test
;
import
com.brilliance.dzxt.framework.Result
;
import
com.brilliance.dzxt.packet.model.com.BrnchId
;
import
com.brilliance.dzxt.packet.model.com.GrpHdr
;
import
com.brilliance.dzxt.packet.model.com.InstdAgt
;
import
com.brilliance.dzxt.packet.model.com.InstgAgt
;
import
com.brilliance.dzxt.packet.model.com.MsgPgntn
;
import
com.brilliance.dzxt.packet.model.elcs_720_001_01.Elcs_720_001_01
;
import
com.brilliance.dzxt.packet.model.elcs_720_001_01.Ntry
;
import
com.brilliance.dzxt.packet.model.elcs_720_001_01.Rpt
;
import
com.brilliance.dzxt.utils.MsgUtil
;
public
class
Elcs_720_001_01Test
{
Elcs_720_001_01
elcs_720_001_01
;
GrpHdr
grpHdr
;
MsgPgntn
msgPgntn
;
Rpt
rpt
;
@Before
public
void
setUp
()
{
BrnchId
brnchId
=
new
BrnchId
(
"brnchId0001"
);
InstgAgt
instgAgt
=
new
InstgAgt
(
"MmbId0001"
,
brnchId
);
brnchId
=
new
BrnchId
(
"brnchId0002"
);
InstdAgt
instdAgt
=
new
InstdAgt
(
"MmbId0002"
,
brnchId
);
grpHdr
=
new
GrpHdr
(
"201908211112000001"
,
"2010-09-01 10:09:05"
,
instgAgt
,
instdAgt
,
"ELCS"
,
"elcs_720_001_01 test"
);
msgPgntn
=
new
MsgPgntn
(
"1"
,
"TRUE"
);
List
<
Ntry
>
ntrylst
=
new
LinkedList
<
Ntry
>();
Ntry
ntry
=
new
Ntry
(
"msgid001"
,
"SNDR"
,
"FQJG01"
,
"elcs_720_001_01"
,
"PDNG"
);
ntrylst
.
add
(
ntry
);
ntry
=
new
Ntry
(
"msgid002"
,
"SNDR"
,
"FQJG02"
,
"elcs_720_001_01"
,
"PDNG"
);
ntrylst
.
add
(
ntry
);
rpt
=
new
Rpt
(
"2019-09-01"
,
"BANK00001"
,
ntrylst
);
elcs_720_001_01
=
new
Elcs_720_001_01
(
"102100099998"
,
"103100022226"
,
"20190901"
,
"094508"
,
"elcs.720.001.01"
,
"A1234B1234C1234D1234"
,
"00000000000000000000"
,
"U"
,
grpHdr
,
msgPgntn
,
rpt
);
}
/**
* elcs.720.001.01类型报文打包和解包测试
*/
@Test
public
void
testPackAndUnpack
()
{
try
{
Result
reqResult
=
MsgUtil
.
packMessage
(
elcs_720_001_01
);
System
.
out
.
println
(
"Elcs_720_001_01报文头=="
+
reqResult
.
getHead
());
System
.
out
.
println
(
"Elcs_720_001_01签名部分=="
+
reqResult
.
getSignature
());
System
.
out
.
println
(
"Elcs_720_001_01报文体部分=="
+
reqResult
.
getBody
());
System
.
out
.
println
(
"Elcs_720_001_01完整报文=="
+
reqResult
.
getMessage
());
Result
resResult
=
MsgUtil
.
unPackMessage
(
reqResult
.
getMessage
());
System
.
out
.
println
(
"本地保存完整报文:"
+
resResult
.
getMessageType
());
resResult
.
saveMessageForXml
(
"D:/elcs.720.001.01.xml"
);
System
.
out
.
println
(
"本地保存完整报文模型扁平化结构:"
+
resResult
.
getElcsFlatHierarchy
());
resResult
.
saveElcsFlatHierarchy
(
"D:/elcs.720.001.01.json"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
be-dzxt-test/src/com/brilliance/pack/PackTest.java
View file @
41f34db7
...
...
@@ -130,4 +130,10 @@ public class PackTest {
}
}
/**
* 测试读取
*/
@Test
public
void
testUnpackByFile
()
{
}
}
doc/电子信用证报文处理子系统使用说明.docx
View file @
41f34db7
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment