Search in sources :

Example 1 with HtmlInvoiceGenerator

use of org.killbill.billing.invoice.template.HtmlInvoiceGenerator in project killbill by killbill.

the class TestHtmlInvoiceGenerator method beforeClass.

@Override
@BeforeClass(groups = "fast")
public void beforeClass() throws Exception {
    super.beforeClass();
    final TranslatorConfig config = new ConfigurationObjectFactory(skifeConfigSource).build(TranslatorConfig.class);
    final TemplateEngine templateEngine = new MustacheTemplateEngine();
    final InvoiceFormatterFactory factory = new DefaultInvoiceFormatterFactory();
    g = new HtmlInvoiceGenerator(factory, templateEngine, config, null, resourceBundleFactory, null);
}
Also used : InvoiceFormatterFactory(org.killbill.billing.invoice.api.formatters.InvoiceFormatterFactory) DefaultInvoiceFormatterFactory(org.killbill.billing.invoice.template.formatters.DefaultInvoiceFormatterFactory) TemplateEngine(org.killbill.billing.util.email.templates.TemplateEngine) MustacheTemplateEngine(org.killbill.billing.util.email.templates.MustacheTemplateEngine) MustacheTemplateEngine(org.killbill.billing.util.email.templates.MustacheTemplateEngine) DefaultInvoiceFormatterFactory(org.killbill.billing.invoice.template.formatters.DefaultInvoiceFormatterFactory) TranslatorConfig(org.killbill.billing.util.template.translation.TranslatorConfig) ConfigurationObjectFactory(org.skife.config.ConfigurationObjectFactory) HtmlInvoiceGenerator(org.killbill.billing.invoice.template.HtmlInvoiceGenerator) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

InvoiceFormatterFactory (org.killbill.billing.invoice.api.formatters.InvoiceFormatterFactory)1 HtmlInvoiceGenerator (org.killbill.billing.invoice.template.HtmlInvoiceGenerator)1 DefaultInvoiceFormatterFactory (org.killbill.billing.invoice.template.formatters.DefaultInvoiceFormatterFactory)1 MustacheTemplateEngine (org.killbill.billing.util.email.templates.MustacheTemplateEngine)1 TemplateEngine (org.killbill.billing.util.email.templates.TemplateEngine)1 TranslatorConfig (org.killbill.billing.util.template.translation.TranslatorConfig)1 ConfigurationObjectFactory (org.skife.config.ConfigurationObjectFactory)1 BeforeClass (org.testng.annotations.BeforeClass)1