SvGetCmdBuild extends AbstractPoCommandBuilder<SvGetRespPars> { public SvSettings.Operation getSvOperation() { return svOperation; } SvGetCmdBuild(PoClass poClass, PoRevision poRevision, SvSettings.Operation svOperation); SvSettings.Operation getSvOperation(); @Override SvGetRespPars createResponseParser(ApduResponse apduResponse); @Override boolean isSessionBufferUsed();  }
@Test public void svGetCmdBuild_mode_compat_get_sv_operation() { SvGetCmdBuild svGetCmdBuild = new SvGetCmdBuild(PoClass.ISO, PoRevision.REV3_1, SvSettings.Operation.RELOAD); Assert.assertEquals(SvSettings.Operation.RELOAD, svGetCmdBuild.getSvOperation()); svGetCmdBuild = new SvGetCmdBuild(PoClass.ISO, PoRevision.REV3_1, SvSettings.Operation.DEBIT); Assert.assertEquals(SvSettings.Operation.DEBIT, svGetCmdBuild.getSvOperation()); }
@Test public void svGetCmdBuild_mode_rev32_get_sv_operation() { SvGetCmdBuild svGetCmdBuild = new SvGetCmdBuild(PoClass.ISO, PoRevision.REV3_2, SvSettings.Operation.RELOAD); Assert.assertEquals(SvSettings.Operation.RELOAD, svGetCmdBuild.getSvOperation()); svGetCmdBuild = new SvGetCmdBuild(PoClass.ISO, PoRevision.REV3_2, SvSettings.Operation.DEBIT); Assert.assertEquals(SvSettings.Operation.DEBIT, svGetCmdBuild.getSvOperation()); }