Petals-SE-Activiti 0.9.x

compared with
Current by Christophe DENEUX
on Sep 27, 2016 15:43.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (4)

View Page History
h2. Checking the compliance of the WSDL

The unit test framework contains an assertion '{{assertIsCompliant}}' to verify easily the compliance of your WSDL with the attendees of the mode 'service':
{code:lang=java} {color:red}*TODO*{color}
import static org.junit.Assert.assertNotNull;
import static org.ow2.petals.se.bpmn2.unittest.Assert.assertIsCompliant;

import java.io.InputStream;

import org.junit.Test;

public class WSDLComplianceTest {

@Test
public void testWSDLCompliance() {
final InputStream isWsdl = Thread.currentThread().getContextClassLoader()
.getResourceAsStream("myService.wsdl");
assertNotNull("WSDL not found as resource !", isWsdl);
assertIsCompliant("WSDL not compliant with SE Activiti attendes !", isWsdl);
}

}
{code}

h2. Unit-testing your XSLs