From ac3cfd1cd5f18d72948b70db39cc7db32a392133 Mon Sep 17 00:00:00 2001 From: Mohammad Salehe Date: Wed, 7 Nov 2018 11:00:34 -0500 Subject: Modify TestVotingApp and add extra update Change-Id: I250cef00bbea068196f54f442ed7d47fe0dd4aab Issue-ID: MUSIC-148 Signed-off-by: Mohammad Salehe --- src/test/java/org/onap/music/unittests/TestVotingApp.java | 9 +++++---- 1 file 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 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 -- cgit 1.2.3-korg