From: Mohammad Salehe Date: Wed, 7 Nov 2018 16:00:34 +0000 (-0500) Subject: Modify TestVotingApp and add extra update X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F72092%2F1;p=music.git Modify TestVotingApp and add extra update Change-Id: I250cef00bbea068196f54f442ed7d47fe0dd4aab Issue-ID: MUSIC-148 Signed-off-by: Mohammad Salehe --- 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 voteCount = tva.readAllVotes(); + HashMap 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