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);
}
Aggregations