@Test public void testGetStatusTable() { ApduResponse apduResponse = Mockito.mock(ApduResponse.class); ApduResponseParser apduResponseParser = getApduResponseParser(apduResponse); Map<Integer, AbstractApduResponseParser.StatusProperties> statusTable = apduResponseParser.getStatusTable(); Assert.assertEquals(4, statusTable.size()); Assert.assertTrue(statusTable.containsKey(0x9000)); Assert.assertTrue(statusTable.containsKey(0x9999)); Assert.assertTrue(statusTable.containsKey(0x6500)); Assert.assertTrue(statusTable.containsKey(0x6400)); Assert.assertTrue(statusTable.get(0x9000).isSuccessful()); Assert.assertTrue(statusTable.get(0x9999).isSuccessful()); Assert.assertFalse(statusTable.get(0x6500).isSuccessful()); Assert.assertFalse(statusTable.get(0x6400).isSuccessful()); }
protected Map<Integer, StatusProperties> getStatusTable() { return STATUS_TABLE; }
AbstractApduResponseParser { protected Map<Integer, StatusProperties> getStatusTable() { return STATUS_TABLE; } }
AbstractApduResponseParser { protected Map<Integer, StatusProperties> getStatusTable() { return STATUS_TABLE; } AbstractApduResponseParser(ApduResponse response, AbstractApduCommandBuilder builder); }
AbstractApduResponseParser { protected Map<Integer, StatusProperties> getStatusTable() { return STATUS_TABLE; } AbstractApduResponseParser(ApduResponse response, AbstractApduCommandBuilder builder); final ApduResponse getApduResponse(); AbstractApduCommandBuilder getBuilder(); boolean isSuccessful(); void checkStatus(); final String getStatusInformation(); }
AbstractApduResponseParser { protected Map<Integer, StatusProperties> getStatusTable() { return STATUS_TABLE; } AbstractApduResponseParser(ApduResponse response, AbstractApduCommandBuilder builder); final ApduResponse getApduResponse(); AbstractApduCommandBuilder getBuilder(); boolean isSuccessful(); void checkStatus(); final String getStatusInformation();  }