Petals-SE-Activiti 1.0.3+

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

Changes (12)

View Page History
* to verify easily the XSL used to generate output replies.

This dedicated framework is provided by the Maven artifact {{org.ow2.petals:petals-se-activiti-junit}}:
{code:xml}
<project>
...
<dependencies>
...
<dependency>
<groupId>org.ow2.petals</groupId>
<artifactId>petals-se-activiti-junit</artifactId>
<version>1.0.0</version>
<scope>test</scope>
</dependency>
...
</dependencies>
...
</project>
{code}

h2. Checking the compliance of the WSDL

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

import java.io.InputStream; javax.xml.namespace.QName;

import org.junit.Test;

public class WSDLComplianceTest ValidateTest {

@Test
public void testWSDLCompliance() validate() throws Exception {
final InputStream isWsdl = Thread.currentThread().getContextClassLoader() assertWsdlCompliance(new QName[] { new QName("http://petals.ow2.org/samples/se-bpmn/vacationService", "new"),
.getResourceAsStream("myService.wsdl"); new QName("http://petals.ow2.org/samples/se-bpmn/vacationService", "validate"),
assertNotNull("WSDL not found as resource !", isWsdl);
assertIsCompliant("WSDL not compliant with SE Activiti attendes !", isWsdl);
new QName("http://petals.ow2.org/samples/se-bpmn/vacationService", "update") });
}