Skip to content

Commit

Permalink
chore(engine): make exception assertion less strict
Browse files Browse the repository at this point in the history
- exact message is JDK-dependant, in particular there are differences
  between Oracle and IBM JDK

related to CAM-10674
  • Loading branch information
ThorbenLindhauer committed Jul 26, 2019
1 parent 0490ada commit 9125cca
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1117,14 +1117,18 @@ public void testFeatureSecureProcessingRestrictExternalSchemaAccess() {
.endEvent()
.done();

DeploymentBuilder builder = repositoryService.createDeployment()
.addModelInstance("process.bpmn", process);

System.setProperty("javax.xml.accessExternalSchema", ""); // empty string prohibits all external schema access

// then
// fails, because the BPMN XSD references other external XSDs, e.g. BPMNDI
exception.expect(ProcessEngineException.class);
exception.expectMessage("Failed to read schema document 'BPMNDI.xsd'");
exception.expectMessage("Could not parse 'process.bpmn'");

// when
testRule.deploy(process);
testRule.deploy(builder);
}

@Test
Expand Down

0 comments on commit 9125cca

Please sign in to comment.