PoSecuritySettings { ModificationMode getSessionModificationMode() { return sessionModificationMode; } private  PoSecuritySettings(PoSecuritySettingsBuilder builder); PoTransaction.PinTransmissionMode getPinTransmissionMode(); static final ModificationMode defaultSessionModificationMode; static final RatificationMode defaultRatificationMode; static final PoTransaction.PinTransmissionMode defaultPinTransmissionMode; }
@Test public void poSecuritySettings_modificationMode_default() { SeReader samReader = null; CalypsoSam calypsoSam = createCalypsoSam(); SeResource<CalypsoSam> samResource = new SeResource<CalypsoSam>(samReader, calypsoSam); PoSecuritySettings poSecuritySettings = new PoSecuritySettings.PoSecuritySettingsBuilder(samResource).build(); assertThat(poSecuritySettings.getSessionModificationMode()).isEqualTo(ATOMIC); }
@Test public void poSecuritySettings_modificationMode_Atomic() { SeReader samReader = null; CalypsoSam calypsoSam = createCalypsoSam(); SeResource<CalypsoSam> samResource = new SeResource<CalypsoSam>(samReader, calypsoSam); PoSecuritySettings poSecuritySettings = new PoSecuritySettings.PoSecuritySettingsBuilder(samResource) .sessionModificationMode(ATOMIC) .build(); assertThat(poSecuritySettings.getSessionModificationMode()).isEqualTo(ATOMIC); }
@Test public void poSecuritySettings_modificationMode_Multiple() { SeReader samReader = null; CalypsoSam calypsoSam = createCalypsoSam(); SeResource<CalypsoSam> samResource = new SeResource<CalypsoSam>(samReader, calypsoSam); PoSecuritySettings poSecuritySettings = new PoSecuritySettings.PoSecuritySettingsBuilder(samResource) .sessionModificationMode(MULTIPLE) .build(); assertThat(poSecuritySettings.getSessionModificationMode()).isEqualTo(MULTIPLE); }