@Test public void shouldConvert() { RequestMap expectedMap = new RequestMap(); expectedMap.putMap(new HashMap<String, String>() {{ put("extraAmount", "100.00"); put("receiverEmail", "teste@teste.com.br"); put("currency", "BRL"); }}); RequestMap map = mapConverter.convert(directPaymentRegistration); assertEquals(expectedMap, map); }
@Override protected void convert(RequestMap requestMap, DirectPaymentRegistration directPaymentRegistration) { requestMap.putMap(TRANSACTION_REGISTRATION_MC.convert(directPaymentRegistration)); requestMap.putCurrency("extraAmount", directPaymentRegistration.getExtraAmount()); requestMap.putString("receiverEmail", directPaymentRegistration.getReceiverEmail()); }
DirectPaymentRegistrationV2MapConverter extends
    AbstractMapConverter<DirectPaymentRegistration> { @Override protected void convert(RequestMap requestMap, DirectPaymentRegistration directPaymentRegistration) { requestMap.putMap(TRANSACTION_REGISTRATION_MC.convert(directPaymentRegistration)); requestMap.putCurrency("extraAmount", directPaymentRegistration.getExtraAmount()); requestMap.putString("receiverEmail", directPaymentRegistration.getReceiverEmail()); } }
DirectPaymentRegistrationV2MapConverter extends
    AbstractMapConverter<DirectPaymentRegistration> { @Override protected void convert(RequestMap requestMap, DirectPaymentRegistration directPaymentRegistration) { requestMap.putMap(TRANSACTION_REGISTRATION_MC.convert(directPaymentRegistration)); requestMap.putCurrency("extraAmount", directPaymentRegistration.getExtraAmount()); requestMap.putString("receiverEmail", directPaymentRegistration.getReceiverEmail()); } DirectPaymentRegistrationV2MapConverter(); }
DirectPaymentRegistrationV2MapConverter extends
    AbstractMapConverter<DirectPaymentRegistration> { @Override protected void convert(RequestMap requestMap, DirectPaymentRegistration directPaymentRegistration) { requestMap.putMap(TRANSACTION_REGISTRATION_MC.convert(directPaymentRegistration)); requestMap.putCurrency("extraAmount", directPaymentRegistration.getExtraAmount()); requestMap.putString("receiverEmail", directPaymentRegistration.getReceiverEmail()); } DirectPaymentRegistrationV2MapConverter();  }
DirectPaymentRegistrationV2MapConverter extends
    AbstractMapConverter<DirectPaymentRegistration> { @Override protected void convert(RequestMap requestMap, DirectPaymentRegistration directPaymentRegistration) { requestMap.putMap(TRANSACTION_REGISTRATION_MC.convert(directPaymentRegistration)); requestMap.putCurrency("extraAmount", directPaymentRegistration.getExtraAmount()); requestMap.putString("receiverEmail", directPaymentRegistration.getReceiverEmail()); } DirectPaymentRegistrationV2MapConverter();   }