Search in sources :

Example 1 with TrisoExtensionRegister

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);
}
Also used : DMNMarshaller(org.kie.dmn.api.marshalling.DMNMarshaller) TrisoExtensionRegister(org.kie.dmn.backend.marshalling.v1_3.extensions.TrisoExtensionRegister) Test(org.junit.Test)

Example 2 with TrisoExtensionRegister

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);
}
Also used : DMNMarshaller(org.kie.dmn.api.marshalling.DMNMarshaller) TrisoExtensionRegister(org.kie.dmn.backend.marshalling.v1_3.extensions.TrisoExtensionRegister) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 DMNMarshaller (org.kie.dmn.api.marshalling.DMNMarshaller)2 TrisoExtensionRegister (org.kie.dmn.backend.marshalling.v1_3.extensions.TrisoExtensionRegister)2