PROX-367: rename

This commit is contained in:
avcherkasov 2019-11-29 16:52:20 +03:00
parent 2eb817e8b0
commit deb5f6ed43
2 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ public class AppConfiguration {
@Bean
public ObjectMapper objectMapper() {
return new SimpleObjectMapper().getSimpleObjectMapper();
return new SimpleObjectMapper().getSimpleObjectMapperFactory();
}

View File

@ -14,25 +14,25 @@ public class SessionDataUtilsTest {
@Test
public void getCvv2() {
SessionData sessionData = new SessionData();
String cvv2 = CardDataUtils.getCvv2(sessionData);
String cvv2 = CardDataUtils.extractCvv2(sessionData);
Assert.assertNull(cvv2);
AuthData authData = new AuthData();
sessionData.setAuthData(authData);
cvv2 = CardDataUtils.getCvv2(sessionData);
cvv2 = CardDataUtils.extractCvv2(sessionData);
Assert.assertNull(cvv2);
CardSecurityCode cardSecurityCode = new CardSecurityCode();
authData.setCardSecurityCode(cardSecurityCode);
cvv2 = CardDataUtils.getCvv2(sessionData);
cvv2 = CardDataUtils.extractCvv2(sessionData);
Assert.assertNull(cvv2);
cardSecurityCode.setValue(CARD_SECURITY_CODE);
cvv2 = CardDataUtils.getCvv2(sessionData);
cvv2 = CardDataUtils.extractCvv2(sessionData);
Assert.assertEquals(CARD_SECURITY_CODE, cvv2);
}