use of org.killbill.billing.osgi.api.OSGIServiceDescriptor in project killbill by killbill.
the class TestPaymentPluginProperties method beforeMethod.
@BeforeMethod(groups = "slow")
public void beforeMethod() throws Exception {
super.beforeMethod();
mockPaymentControlProviderPlugin = new PluginPropertiesVerificator();
controlPluginRegistry.registerService(new OSGIServiceDescriptor() {
@Override
public String getPluginSymbolicName() {
return null;
}
@Override
public String getPluginName() {
return PluginPropertiesVerificator.PLUGIN_NAME;
}
@Override
public String getRegistrationName() {
return PluginPropertiesVerificator.PLUGIN_NAME;
}
}, mockPaymentControlProviderPlugin);
}
use of org.killbill.billing.osgi.api.OSGIServiceDescriptor in project killbill by killbill.
the class TestPayment method beforeMethod.
@BeforeMethod(groups = "slow")
public void beforeMethod() throws Exception {
super.beforeMethod();
mockPaymentProviderPlugin = (MockPaymentProviderPlugin) registry.getServiceForName(PLUGIN_NAME);
mockPaymentControlProviderPlugin = new MockPaymentControlProviderPlugin();
controlPluginRegistry.registerService(new OSGIServiceDescriptor() {
@Override
public String getPluginSymbolicName() {
return null;
}
@Override
public String getPluginName() {
return MockPaymentControlProviderPlugin.PLUGIN_NAME;
}
@Override
public String getRegistrationName() {
return MockPaymentControlProviderPlugin.PLUGIN_NAME;
}
}, mockPaymentControlProviderPlugin);
}
use of org.killbill.billing.osgi.api.OSGIServiceDescriptor in project killbill by killbill.
the class TestPaymentApi method beforeMethod.
@BeforeMethod(groups = "slow")
public void beforeMethod() throws Exception {
super.beforeMethod();
mockPaymentProviderPlugin.clear();
account = testHelper.createTestAccount("bobo@gmail.com", true);
mockPaymentControlProviderPlugin = new MockPaymentControlProviderPlugin();
controlPluginRegistry.registerService(new OSGIServiceDescriptor() {
@Override
public String getPluginSymbolicName() {
return null;
}
@Override
public String getPluginName() {
return MockPaymentControlProviderPlugin.PLUGIN_NAME;
}
@Override
public String getRegistrationName() {
return MockPaymentControlProviderPlugin.PLUGIN_NAME;
}
}, mockPaymentControlProviderPlugin);
}
use of org.killbill.billing.osgi.api.OSGIServiceDescriptor in project killbill by killbill.
the class NoOpInvoiceProviderPluginProvider method get.
@Override
public DefaultNoOpInvoiceProviderPlugin get() {
final DefaultNoOpInvoiceProviderPlugin plugin = new DefaultNoOpInvoiceProviderPlugin(clock);
final OSGIServiceDescriptor desc = new OSGIServiceDescriptor() {
@Override
public String getPluginSymbolicName() {
return null;
}
@Override
public String getPluginName() {
return instanceName;
}
@Override
public String getRegistrationName() {
return instanceName;
}
};
registry.registerService(desc, plugin);
return plugin;
}
use of org.killbill.billing.osgi.api.OSGIServiceDescriptor in project killbill by killbill.
the class TestPaymentWithControl method beforeClass.
@BeforeClass(groups = "slow")
public void beforeClass() throws Exception {
super.beforeClass();
this.testPaymentControlWithControl = new TestPaymentControlPluginApi();
pluginRegistry.registerService(new OSGIServiceDescriptor() {
@Override
public String getPluginSymbolicName() {
return TEST_PAYMENT_WITH_CONTROL;
}
@Override
public String getPluginName() {
return TEST_PAYMENT_WITH_CONTROL;
}
@Override
public String getRegistrationName() {
return TEST_PAYMENT_WITH_CONTROL;
}
}, testPaymentControlWithControl);
properties = new ArrayList<PluginProperty>();
paymentOptions = new PaymentOptions() {
@Override
public boolean isExternalPayment() {
return false;
}
@Override
public List<String> getPaymentControlPluginNames() {
return ImmutableList.of(TEST_PAYMENT_WITH_CONTROL);
}
};
properties.add(new PluginProperty("name", TEST_PAYMENT_WITH_CONTROL, false));
}
Aggregations