use of org.kie.workbench.common.services.shared.kmodule.KModuleModel in project kie-wb-common by kiegroup.
the class KModuleContentHandlerTest method testBasic.
@Test
public void testBasic() throws Exception {
KModuleContentHandler kModuleContentHandler = new KModuleContentHandler();
KModuleModel model = kModuleContentHandler.toModel(readResource("simpleKModule.xml"));
assertNotNull(model);
}
use of org.kie.workbench.common.services.shared.kmodule.KModuleModel in project kie-wb-common by kiegroup.
the class KModuleContentHandlerTest method testMarshallingOfDefaultDroolsNameSpace.
@Test
public void testMarshallingOfDefaultDroolsNameSpace() throws Exception {
final KModuleContentHandler kModuleContentHandler = new KModuleContentHandler();
final String kmodule = kModuleContentHandler.toString(new KModuleModel());
assertNotNull(kmodule);
assertTrue(kmodule.contains("xmlns=\"http://www.drools.org/xsd/kmodule\""));
}
Aggregations