aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/org/onap/music/unittests/TestVotingApp.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/onap/music/unittests/TestVotingApp.java')
-rw-r--r--src/test/java/org/onap/music/unittests/TestVotingApp.java9
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