Skip to content

Commit

Permalink
added additional tests. But unable to reproduce the problem
Browse files Browse the repository at this point in the history
Issue #736
  • Loading branch information
rsoika committed Apr 13, 2021
1 parent 7ca1563 commit 9d9970c
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void testCreateSubProcessWithFile() throws ModelException {


try {
documentActivity = workflowMockEnvironment.getModel().getEvent(100, 60);
documentActivity = workflowMockEnvironment.getModel().getEvent(100, 61);
splitAndJoinPlugin.run(documentContext, documentActivity);
} catch (PluginException e) {

Expand Down Expand Up @@ -427,7 +427,6 @@ public void testUpdateSubProcess() throws ModelException {
@SuppressWarnings("unchecked")
@Test
public void testCreateSubProcessCopyItemByRegex() throws ModelException {

try {
documentActivity = workflowMockEnvironment.getModel().getEvent(100, 70);
splitAndJoinPlugin.run(documentContext, documentActivity);
Expand All @@ -436,7 +435,6 @@ public void testCreateSubProcessCopyItemByRegex() throws ModelException {
e.printStackTrace();
Assert.fail();
}

Assert.assertNotNull(documentContext);

// load the new subprocess....
Expand All @@ -447,9 +445,7 @@ public void testCreateSubProcessCopyItemByRegex() throws ModelException {

Assert.assertEquals("manfred", subprocess.getItemValue("namTeam", String.class));
Assert.assertEquals("ronny", subprocess.getItemValue("namcreator", String.class));

Assert.assertEquals("", subprocess.getItemValueString("$snapshotid"));
// ("$snapshotid", "11112222");

// test the deprecated LIst
List<String> workitemRefListDeprecated = documentContext.getItemValue("txtworkitemref");
Expand Down
Loading

0 comments on commit 9d9970c

Please sign in to comment.