Skip to content

Commit

Permalink
junit test added
Browse files Browse the repository at this point in the history
issue #393
  • Loading branch information
rsoika committed Jun 17, 2018
1 parent 4b8482d commit 9afcb7a
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,25 @@ public void testNullValues() {
Assert.assertEquals(0, l2.size());

}


@Test
@Category(org.imixs.workflow.ItemCollection.class)
public void testItemCollectionItemNameList() {
ItemCollection itemCollection = new ItemCollection();
itemCollection.replaceItemValue("_subject", "Hello");
itemCollection.replaceItemValue("_dummy", "Hello");
itemCollection.replaceItemValue("_title", "Hello");

List<String> itemNames=itemCollection.getItemNames();
Assert.assertEquals(3,itemNames.size());

itemCollection.removeItem("_dummy");
itemNames=itemCollection.getItemNames();
Assert.assertEquals(2,itemNames.size());

}


/**
* This method verifies the clone interface
Expand Down

0 comments on commit 9afcb7a

Please sign in to comment.