PoSecuritySettings { public PoTransaction.PinTransmissionMode getPinTransmissionMode() { return pinTransmissionMode; } private  PoSecuritySettings(PoSecuritySettingsBuilder builder); PoTransaction.PinTransmissionMode getPinTransmissionMode(); static final ModificationMode defaultSessionModificationMode; static final RatificationMode defaultRatificationMode; static final PoTransaction.PinTransmissionMode defaultPinTransmissionMode; }
@Test public void poSecuritySettings_pinTransmissionMode_default() { SeReader samReader = null; CalypsoSam calypsoSam = createCalypsoSam(); SeResource<CalypsoSam> samResource = new SeResource<CalypsoSam>(samReader, calypsoSam); PoSecuritySettings poSecuritySettings = new PoSecuritySettings.PoSecuritySettingsBuilder(samResource).build(); assertThat(poSecuritySettings.getPinTransmissionMode()).isEqualTo(ENCRYPTED); }
@Test public void poSecuritySettings_pinTransmissionMode_plain() { SeReader samReader = null; CalypsoSam calypsoSam = createCalypsoSam(); SeResource<CalypsoSam> samResource = new SeResource<CalypsoSam>(samReader, calypsoSam); PoSecuritySettings poSecuritySettings = new PoSecuritySettings.PoSecuritySettingsBuilder(samResource) .pinTransmissionMode(PLAIN) .build(); assertThat(poSecuritySettings.getPinTransmissionMode()).isEqualTo(PLAIN); }
@Test public void poSecuritySettings_pinTransmissionMode_encrypted() { SeReader samReader = null; CalypsoSam calypsoSam = createCalypsoSam(); SeResource<CalypsoSam> samResource = new SeResource<CalypsoSam>(samReader, calypsoSam); PoSecuritySettings poSecuritySettings = new PoSecuritySettings.PoSecuritySettingsBuilder(samResource) .pinTransmissionMode(ENCRYPTED) .build(); assertThat(poSecuritySettings.getPinTransmissionMode()).isEqualTo(ENCRYPTED); }