@Test public void convertShouldConvertXMLMessageIntoOrderModificationMessage() { when(responseTransformerHelperMock.buildPaymentReply(paymentMock)).thenReturn(paymentReplyMock); when(responseTransformerHelperMock.buildJournalReply(journalMock)).thenReturn(journalReplyMock); when(orderStatusEventMock.getPayment()).thenReturn(paymentMock); when(orderStatusEventMock.getJournal()).thenReturn(journalMock); when(orderStatusEventMock.getOrderCode()).thenReturn(ORDER_CODE); when(paymentServiceMock.getMerchantCode()).thenReturn(MERCHANT_CODE); when(orderStatusEventMock.getToken()).thenReturn(tokenMock); when(responseTransformerHelperMock.buildTokenReply(tokenMock)).thenReturn(tokenReplyMock); final OrderNotificationMessage result = testObj.convert(paymentServiceMock); assertEquals(ORDER_CODE, result.getOrderCode()); assertEquals(MERCHANT_CODE, result.getMerchantCode()); assertSame(paymentReplyMock, result.getPaymentReply()); assertSame(journalReplyMock, result.getJournalReply()); assertSame(tokenReplyMock, result.getTokenReply()); }
@Override public OrderNotificationMessage convert(final PaymentService source) throws ConversionException { return convert(source, new OrderNotificationMessage()); }
OrderModificationRequestConverter implements Converter<PaymentService, OrderNotificationMessage> { @Override public OrderNotificationMessage convert(final PaymentService source) throws ConversionException { return convert(source, new OrderNotificationMessage()); } }
OrderModificationRequestConverter implements Converter<PaymentService, OrderNotificationMessage> { @Override public OrderNotificationMessage convert(final PaymentService source) throws ConversionException { return convert(source, new OrderNotificationMessage()); }  }
OrderModificationRequestConverter implements Converter<PaymentService, OrderNotificationMessage> { @Override public OrderNotificationMessage convert(final PaymentService source) throws ConversionException { return convert(source, new OrderNotificationMessage()); }  @Override OrderNotificationMessage convert(final PaymentService source); @Override OrderNotificationMessage convert(final PaymentService source, final OrderNotificationMessage target); @Required void setServiceResponseTransformerHelper(final ServiceResponseTransformerHelper serviceResponseTransformerHelper); }
OrderModificationRequestConverter implements Converter<PaymentService, OrderNotificationMessage> { @Override public OrderNotificationMessage convert(final PaymentService source) throws ConversionException { return convert(source, new OrderNotificationMessage()); }  @Override OrderNotificationMessage convert(final PaymentService source); @Override OrderNotificationMessage convert(final PaymentService source, final OrderNotificationMessage target); @Required void setServiceResponseTransformerHelper(final ServiceResponseTransformerHelper serviceResponseTransformerHelper);  }