Search in sources :

Example 1 with CamelJetFileProvider

use of org.talend.camel.designer.codegen.jet.CamelJetFileProvider in project tesb-studio-se by Talend.

the class CamelJetFileProviderTest method testInitialize.

/**
 * Test method for
 * {@link org.talend.camel.designer.codegen.jet.CamelJetFileProvider#initializeStubAdditionalJetFile()}.
 */
@Test
public void testInitialize() {
    List<String> resTemplates = Arrays.asList(new String[] { "header_route", "footer_route", "camel_speciallinks", "camel_run_if" });
    List<TemplateUtil> templates = new CamelJetFileProvider().initializeStubAdditionalJetFile();
    for (TemplateUtil t : templates) {
        Assert.assertTrue(resTemplates.contains(t.getType().getTemplateName()));
    }
}
Also used : TemplateUtil(org.talend.designer.codegen.config.TemplateUtil) CamelJetFileProvider(org.talend.camel.designer.codegen.jet.CamelJetFileProvider) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 CamelJetFileProvider (org.talend.camel.designer.codegen.jet.CamelJetFileProvider)1 TemplateUtil (org.talend.designer.codegen.config.TemplateUtil)1