use of org.kie.dmn.backend.marshalling.v1_3.extensions.TrisoExtensionRegister in project drools by kiegroup.
the class UnmarshalMarshalTest method testV14_ch11example_asFromOMG.
@Test
public void testV14_ch11example_asFromOMG() throws Exception {
// as the example from OMG contains example of extension element, preserving (re-using from package of 1.3)
DMNMarshaller marshaller = DMNMarshallerFactory.newMarshallerWithExtensions(Arrays.asList(new TrisoExtensionRegister()));
testRoundTrip("org/kie/dmn/backend/marshalling/v1_4/", "Chapter 11 Example.dmn", marshaller, DMN14_SCHEMA_SOURCE);
}
use of org.kie.dmn.backend.marshalling.v1_3.extensions.TrisoExtensionRegister in project drools by kiegroup.
the class UnmarshalMarshalTest method testV13_ch11example_asFromOMG.
@Test
public void testV13_ch11example_asFromOMG() throws Exception {
// as the example from OMG contains example of extension element, preserving.
DMNMarshaller marshaller = DMNMarshallerFactory.newMarshallerWithExtensions(Arrays.asList(new TrisoExtensionRegister()));
testRoundTrip("org/kie/dmn/backend/marshalling/v1_3/", "Chapter 11 Example.dmn", marshaller, DMN13_SCHEMA_SOURCE);
}
Aggregations