Search in sources :

Example 1 with PluginControlPaymentProcessor

use of org.killbill.billing.payment.core.PluginControlPaymentProcessor in project killbill by killbill.

the class TestRetryablePayment method beforeMethod.

@BeforeMethod(groups = "fast")
public void beforeMethod() throws Exception {
    super.beforeMethod();
    this.utcNow = clock.getUTCNow();
    runner = new MockRetryablePaymentAutomatonRunner(paymentDao, locker, paymentPluginServiceRegistration, retryPluginRegistry, clock, tagApi, paymentProcessor, retryServiceScheduler, paymentConfig, paymentExecutors, paymentSMHelper, retrySMHelper, controlPluginRunner, eventBus);
    paymentStateContext = new PaymentStateControlContext(ImmutableList.<String>of(MockPaymentControlProviderPlugin.PLUGIN_NAME), true, null, null, paymentExternalKey, null, paymentTransactionExternalKey, TransactionType.AUTHORIZE, account, paymentMethodId, amount, currency, emptyProperties, internalCallContext, callContext);
    mockRetryAuthorizeOperationCallback = new MockRetryAuthorizeOperationCallback(locker, runner.getPaymentPluginDispatcher(), paymentConfig, paymentStateContext, null, controlPluginRunner, paymentDao, clock);
    processor = new PluginControlPaymentProcessor(paymentPluginServiceRegistration, accountInternalApi, null, tagApi, paymentDao, locker, internalCallContextFactory, runner, retrySMHelper, clock);
}
Also used : PluginControlPaymentProcessor(org.killbill.billing.payment.core.PluginControlPaymentProcessor) PaymentStateControlContext(org.killbill.billing.payment.core.sm.control.PaymentStateControlContext) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

PluginControlPaymentProcessor (org.killbill.billing.payment.core.PluginControlPaymentProcessor)1 PaymentStateControlContext (org.killbill.billing.payment.core.sm.control.PaymentStateControlContext)1 BeforeMethod (org.testng.annotations.BeforeMethod)1