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
f3d672d3
Commit
f3d672d3
authored
Sep 25, 2019
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
elcs.902_001_01类型报文完整组包和解包调用案例
parent
8e7065be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
Elcs_902_001_01Test.java
...zxt-test/src/com/brilliance/pack/Elcs_902_001_01Test.java
+12
-6
No files found.
be-dzxt-test/src/com/brilliance/pack/Elcs_902_001_01Test.java
View file @
f3d672d3
...
@@ -17,17 +17,23 @@ public class Elcs_902_001_01Test {
...
@@ -17,17 +17,23 @@ public class Elcs_902_001_01Test {
}
}
/**
/**
* elcs.
720.001.
01类型报文打包和解包测试
* elcs.
902_001_
01类型报文打包和解包测试
*/
*/
@Test
@Test
public
void
testPackAndUnpack
()
{
public
void
testPackAndUnpack
()
{
try
{
try
{
Result
reqResult
=
MsgUtil
.
packMessage
(
elcs_902_001_01
);
Result
reqResult
=
MsgUtil
.
packMessage
(
elcs_902_001_01
);
System
.
out
.
println
(
"报文头=="
+
reqResult
.
getHead
());
if
(
reqResult
.
isSuccess
()){
System
.
out
.
println
(
"签名部分=="
+
reqResult
.
getSignature
());
System
.
out
.
println
(
"报文头=="
+
reqResult
.
getHead
());
System
.
out
.
println
(
"报文体部分=="
+
reqResult
.
getBody
());
System
.
out
.
println
(
"签名部分=="
+
reqResult
.
getSignature
());
System
.
out
.
println
(
"完整报文=="
+
reqResult
.
getMessage
());
System
.
out
.
println
(
"报文体部分=="
+
reqResult
.
getBody
());
System
.
out
.
println
(
"模型json串=="
+
reqResult
.
getElcsModelForJson
());
System
.
out
.
println
(
"完整报文=="
+
reqResult
.
getMessage
());
System
.
out
.
println
(
"模型json串=="
+
reqResult
.
getElcsModelForJson
());
}
else
{
System
.
out
.
println
(
"错误信息=="
+
reqResult
.
getErrMsg
());
System
.
out
.
println
(
"异常对象=="
+
reqResult
.
getThrowable
());
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
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