mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
add component test: ControlParameters
This commit is contained in:
1 parent
655fcb13cd
commit
0213d62d1d
2 files changed
-4
No files matched your search
@@ -58,7 +58,6 @@ public class ControlParameterMtu implements TlvComponentBase,InitialAble,IEncodi
|
|||||||
if (tmplen < 0) {
|
if (tmplen < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
System.out.println("tmplen-1: "+tmplen);
|
|
||||||
totalLength += tmplen;
|
totalLength += tmplen;
|
||||||
|
|
||||||
// 编码 TLV-LENGTH
|
// 编码 TLV-LENGTH
|
||||||
@@ -66,7 +65,6 @@ public class ControlParameterMtu implements TlvComponentBase,InitialAble,IEncodi
|
|||||||
if (tmplen < 0) {
|
if (tmplen < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
System.out.println("tmplen-2: "+tmplen);
|
|
||||||
totalLength += tmplen;
|
totalLength += tmplen;
|
||||||
|
|
||||||
// 编码 TLV-TYPE
|
// 编码 TLV-TYPE
|
||||||
@@ -74,7 +72,6 @@ public class ControlParameterMtu implements TlvComponentBase,InitialAble,IEncodi
|
|||||||
if (tmplen < 0) {
|
if (tmplen < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
System.out.println("tmplen-3: "+tmplen);
|
|
||||||
totalLength += tmplen;
|
totalLength += tmplen;
|
||||||
|
|
||||||
return totalLength;
|
return totalLength;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package component;
|
package component;
|
||||||
|
|
||||||
import encoding.*;
|
import encoding.*;
|
||||||
import logicface.LogicFaceException;
|
|
||||||
import mgmt.MgmtException;
|
import mgmt.MgmtException;
|
||||||
import packet.PacketException;
|
import packet.PacketException;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user