diff options
author | Mohammad Salehe <salehe@cs.toronto.edu> | 2018-11-07 11:00:34 -0500 |
---|---|---|
committer | Mohammad Salehe <salehe@cs.toronto.edu> | 2018-11-07 11:00:34 -0500 |
commit | ac3cfd1cd5f18d72948b70db39cc7db32a392133 (patch) | |
tree | cfa2b706104c5a05cd67ce88568296876b7d3a49 /src/test | |
parent | 4d003e03d87d282389efc524fd26f7c63b7ad0d6 (diff) |
Modify TestVotingApp and add extra update
Change-Id: I250cef00bbea068196f54f442ed7d47fe0dd4aab
Issue-ID: MUSIC-148
Signed-off-by: Mohammad Salehe <salehe@cs.toronto.edu>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/onap/music/unittests/TestVotingApp.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test/java/org/onap/music/unittests/TestVotingApp.java b/src/test/java/org/onap/music/unittests/TestVotingApp.java index 19b10fe8..e7a1e252 100644 --- a/src/test/java/org/onap/music/unittests/TestVotingApp.java +++ b/src/test/java/org/onap/music/unittests/TestVotingApp.java @@ -101,15 +101,16 @@ public class TestVotingApp tva.updateVoteCount("Popeye",5); tva.updateVoteCount("Judy",9); tva.updateVoteCount("Mickey",8); - tva.updateVoteCount("Flash",1); - tva.updateVoteCount("Flash",2); + tva.updateVoteCount("Flash",1); + tva.updateVoteCount("Flash",2); + tva.updateVoteCount("Flash",3); - HashMap<String, Integer> voteCount = tva.readAllVotes(); + HashMap<String, Integer> voteCount = tva.readAllVotes(); System.out.println(voteCount); assert(voteCount.get("Popeye") == 5); assert(voteCount.get("Judy") == 9); assert(voteCount.get("Mickey") == 8); - assert(voteCount.get("Flash") == 2); + assert(voteCount.get("Flash") == 3); } }
\ No newline at end of file |