Search in sources :

Example 1 with MyTestRegister

use of org.kie.dmn.backend.marshalling.v1_1.extensions.MyTestRegister in project drools by kiegroup.

the class UnmarshalMarshalTest method testHello_World_semantic_namespace_with_extensions.

@Test
public void testHello_World_semantic_namespace_with_extensions() throws Exception {
    DMNMarshaller marshaller = DMNMarshallerFactory.newMarshallerWithExtensions(Arrays.asList(new MyTestRegister()));
    testRoundTrip("", "Hello_World_semantic_namespace_with_extensions.dmn", marshaller);
}
Also used : DMNMarshaller(org.kie.dmn.api.marshalling.v1_1.DMNMarshaller) MyTestRegister(org.kie.dmn.backend.marshalling.v1_1.extensions.MyTestRegister) Test(org.junit.Test)

Example 2 with MyTestRegister

use of org.kie.dmn.backend.marshalling.v1_1.extensions.MyTestRegister in project drools by kiegroup.

the class UnmarshalMarshalTest method testHello_World_semantic_namespace_with_extensions_other_ns_location.

@Test
public void testHello_World_semantic_namespace_with_extensions_other_ns_location() throws Exception {
    DMNMarshaller marshaller = DMNMarshallerFactory.newMarshallerWithExtensions(Arrays.asList(new MyTestRegister()));
    testRoundTrip("", "Hello_World_semantic_namespace_with_extensions_other_ns_location.dmn", marshaller);
}
Also used : DMNMarshaller(org.kie.dmn.api.marshalling.v1_1.DMNMarshaller) MyTestRegister(org.kie.dmn.backend.marshalling.v1_1.extensions.MyTestRegister) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 DMNMarshaller (org.kie.dmn.api.marshalling.v1_1.DMNMarshaller)2 MyTestRegister (org.kie.dmn.backend.marshalling.v1_1.extensions.MyTestRegister)2