SvDebitLogRecord { public SvDebitLogRecord(byte[] poResponse, int offset) { this.poResponse = poResponse; this.offset = offset; } SvDebitLogRecord(byte[] poResponse, int offset); int getAmount(); int getBalance(); int getDebitTime(); byte[] getDebitTimeBytes(); int getDebitDate(); byte[] getDebitDateBytes(); byte getKvc(); long getSamId(); byte[] getSamIdBytes(); int getSvTNum(); byte[] getSvTNumBytes(); int getSamTNum(); byte[] getSamTNumBytes(); @Override String toString();  }
@Test public void svDebitLogRecord() { byte[] svGetDebitData = ByteArrayUtil.fromHex( HEADER + AMOUNT_STR + DATE_STR + TIME_STR + KVC_STR + SAMID_STR + SAM_TNUM_STR + BALANCE_STR + SV_TNUM_STR); SvDebitLogRecord svDebitLogRecord = new SvDebitLogRecord(svGetDebitData, HEADER.length() / 2); assertThat(svDebitLogRecord.getAmount()).isEqualTo(AMOUNT); assertThat(svDebitLogRecord.getBalance()).isEqualTo(BALANCE); assertThat(svDebitLogRecord.getDebitDate()).isEqualTo(DATE); assertThat(svDebitLogRecord.getDebitDateBytes()).isEqualTo(DATE_BYTES); assertThat(svDebitLogRecord.getDebitTime()).isEqualTo(TIME); assertThat(svDebitLogRecord.getDebitTimeBytes()).isEqualTo(TIME_BYTES); assertThat(svDebitLogRecord.getKvc()).isEqualTo(KVC); assertThat(svDebitLogRecord.getSamId()).isEqualTo(SAMID); assertThat(svDebitLogRecord.getSamIdBytes()).isEqualTo(SAMID_BYTES); assertThat(svDebitLogRecord.getSamTNum()).isEqualTo(SAM_TNUM); assertThat(svDebitLogRecord.getSamTNumBytes()).isEqualTo(SAM_TNUM_BYTES); assertThat(svDebitLogRecord.getSvTNum()).isEqualTo(SV_TNUM); assertThat(svDebitLogRecord.getSvTNumBytes()).isEqualTo(SV_TNUM_BYTES); assertThat(svDebitLogRecord.toString()).contains(SAMID_STR); }