PoSecuritySettings { RatificationMode getRatificationMode() { return ratificationMode; } private  PoSecuritySettings(PoSecuritySettingsBuilder builder); PoTransaction.PinTransmissionMode getPinTransmissionMode(); static final ModificationMode defaultSessionModificationMode; static final RatificationMode defaultRatificationMode; static final PoTransaction.PinTransmissionMode defaultPinTransmissionMode; }
@Test public void poSecuritySettings_ratificationMode_default() { SeReader samReader = null; CalypsoSam calypsoSam = createCalypsoSam(); SeResource<CalypsoSam> samResource = new SeResource<CalypsoSam>(samReader, calypsoSam); PoSecuritySettings poSecuritySettings = new PoSecuritySettings.PoSecuritySettingsBuilder(samResource).build(); assertThat(poSecuritySettings.getRatificationMode()).isEqualTo(RatificationMode.CLOSE_RATIFIED); }
@Test public void poSecuritySettings_ratificationMode_CloseRatified() { SeReader samReader = null; CalypsoSam calypsoSam = createCalypsoSam(); SeResource<CalypsoSam> samResource = new SeResource<CalypsoSam>(samReader, calypsoSam); PoSecuritySettings poSecuritySettings = new PoSecuritySettings.PoSecuritySettingsBuilder(samResource) .ratificationMode(RatificationMode.CLOSE_RATIFIED) .build(); assertThat(poSecuritySettings.getRatificationMode()).isEqualTo(RatificationMode.CLOSE_RATIFIED); }
@Test public void poSecuritySettings_ratificationMode_CloseNotRatified() { SeReader samReader = null; CalypsoSam calypsoSam = createCalypsoSam(); SeResource<CalypsoSam> samResource = new SeResource<CalypsoSam>(samReader, calypsoSam); PoSecuritySettings poSecuritySettings = new PoSecuritySettings.PoSecuritySettingsBuilder(samResource) .ratificationMode(RatificationMode.CLOSE_NOT_RATIFIED) .build(); assertThat(poSecuritySettings.getRatificationMode()) .isEqualTo(RatificationMode.CLOSE_NOT_RATIFIED); }