use of org.killbill.billing.catalog.plugin.api.StandalonePluginCatalog in project killbill by killbill.
the class TestCatalogPluginMapping method testMappingFromExistingCatalog.
@Test(groups = "fast")
public void testMappingFromExistingCatalog() throws Exception {
final StandaloneCatalog inputCatalog = XMLLoader.getObjectFromString(Resources.getResource("SpyCarAdvanced.xml").toExternalForm(), StandaloneCatalog.class);
final StandalonePluginCatalog pluginCatalog = buildStandalonePluginCatalog(inputCatalog);
final StandaloneCatalogMapper mapper = new StandaloneCatalogMapper(inputCatalog.getCatalogName(), inputCatalog.getRecurringBillingMode());
final StandaloneCatalog output = mapper.toStandaloneCatalog(pluginCatalog, inputCatalog.getCatalogURI());
Assert.assertEquals(output, inputCatalog);
}
Aggregations