@Test public void testLoadTemplates() throws Exception { assertEquals("ACMP", templateService.getTemplateForBundle(AttributeCompareRule).getCode()); assertEquals("ALIS", templateService.getTemplateForBundle(AttributeListRule).getCode()); assertEquals("AOTH", templateService.getTemplateForBundle(AttributeOtherRule).getCode()); assertEquals("ARNG", templateService.getTemplateForBundle(AttributeRangeRule).getCode()); assertEquals("EOTH", templateService.getTemplateForBundle(EntityOtherRule).getCode()); assertEquals("ICMP", templateService.getTemplateForBundle(InterEntityCompareRule).getCode()); assertEquals("MODI", templateService.getTemplateForBundle(ModifyRule).getCode()); assertEquals("TCMP", templateService.getTemplateForBundle(TupleCompareRule).getCode()); assertEquals("TOTH", templateService.getTemplateForBundle(TupleOtherRule).getCode()); }
@Test public void getContentFromTemplateContent() throws Exception { String content = templateService.getContentFromTemplateContent(templateContent, root); logger.info(content); Assert.assertNotNull(content); }