Search in sources :

Example 1 with MyTestRegister

use of org.kie.dmn.backend.marshalling.v1_2.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("org/kie/dmn/backend/marshalling/v1_1/", "Hello_World_semantic_namespace_with_extensions.dmn", marshaller);
}
Also used : DMNMarshaller(org.kie.dmn.api.marshalling.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_2.extensions.MyTestRegister in project drools by kiegroup.

the class UnmarshalMarshalTest method testV12_DMNDIDiagramElementExtension_withContent.

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

Example 3 with MyTestRegister

use of org.kie.dmn.backend.marshalling.v1_2.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("org/kie/dmn/backend/marshalling/v1_1/", "Hello_World_semantic_namespace_with_extensions_other_ns_location.dmn", marshaller);
}
Also used : DMNMarshaller(org.kie.dmn.api.marshalling.DMNMarshaller) MyTestRegister(org.kie.dmn.backend.marshalling.v1_1.extensions.MyTestRegister) Test(org.junit.Test)

Aggregations

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