Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
2497 fix export project test with the corrcet id in extensions json f…
Browse files Browse the repository at this point in the history
  • Loading branch information
constantin-ciobotaru authored and salaboy committed Feb 12, 2019
1 parent 84f6003 commit e0c9056
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.collection.IsMapContaining.hasEntry;
import static org.hamcrest.core.AllOf.allOf;
import static org.hamcrest.core.StringStartsWith.startsWith;
import static org.mockito.Mockito.*;
import static org.springframework.hateoas.Link.REL_SELF;

Expand Down Expand Up @@ -155,6 +156,7 @@ public void checkExportedProjectContainsModel(ModelType modelType,
.hasJsonContentSatisfying(
modelType.getFolderName() + "/" + toJsonFilename(modelName + modelType.getMetadataFileSuffix()),
jsonContent -> {
jsonContent.node("id").matches(startsWith("process-"));
jsonContent.node("name").isEqualTo(modelName);
processVariables.forEach(processVariable -> {
jsonContent.node("extensions.properties")
Expand Down

0 comments on commit e0c9056

Please sign in to comment.