Skip to content

Commit

Permalink
Update script test code
Browse files Browse the repository at this point in the history
  • Loading branch information
joonhaengHeo committed Sep 21, 2023
1 parent c854cb9 commit fbdeb7c
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ import java.util.Optional

class SecondClusterFabricDescriptorStruct (
val rootPublicKey: ByteArray,
val vendorID: Int,
val fabricID: Long,
val nodeID: Long,
val vendorID: UInt,
val fabricID: ULong,
val nodeID: ULong,
val label: String,
val fabricIndex: Int) {
val fabricIndex: UInt) {
override fun toString(): String = buildString {
append("SecondClusterFabricDescriptorStruct {\n")
append("\trootPublicKey : $rootPublicKey\n")
Expand Down Expand Up @@ -68,11 +68,11 @@ class SecondClusterFabricDescriptorStruct (
fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SecondClusterFabricDescriptorStruct {
tlvReader.enterStructure(tlvTag)
val rootPublicKey = tlvReader.getByteArray(ContextSpecificTag(TAG_ROOT_PUBLIC_KEY))
val vendorID = tlvReader.getInt(ContextSpecificTag(TAG_VENDOR_I_D))
val fabricID = tlvReader.getLong(ContextSpecificTag(TAG_FABRIC_I_D))
val nodeID = tlvReader.getLong(ContextSpecificTag(TAG_NODE_I_D))
val vendorID = tlvReader.getUInt(ContextSpecificTag(TAG_VENDOR_I_D))
val fabricID = tlvReader.getULong(ContextSpecificTag(TAG_FABRIC_I_D))
val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D))
val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL))
val fabricIndex = tlvReader.getInt(ContextSpecificTag(TAG_FABRIC_INDEX))
val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX))

tlvReader.exitContainer()

Expand Down

0 comments on commit fbdeb7c

Please sign in to comment.