use of iso.std.iso_iec._24727.tech.schema.TransmitResponse in project open-ecard by ecsec.
the class TerminalTest method testTransmit.
@Test(enabled = false)
public void testTransmit() {
init();
Connect con = new Connect();
con.setContextHandle(ctxHandle);
con.setIFDName(ifdName);
con.setSlot(BigInteger.ZERO);
con.setExclusive(Boolean.FALSE);
slotHandle = ifd.connect(con).getSlotHandle();
Transmit t = new Transmit();
InputAPDUInfoType apdu = new InputAPDUInfoType();
apdu.getAcceptableStatusCode().add(new byte[] { (byte) 0x90, (byte) 0x00 });
apdu.setInputAPDU(new byte[] { (byte) 0x00, (byte) 0xA4, (byte) 0x04, (byte) 0x0C });
t.getInputAPDUInfo().add(apdu);
t.setSlotHandle(slotHandle);
TransmitResponse res = ifd.transmit(t);
assertEquals(ECardConstants.Major.OK, res.getResult().getResultMajor());
}
Aggregations