Modify TestVotingApp and add extra update 92/72092/1
authorMohammad Salehe <salehe@cs.toronto.edu>
Wed, 7 Nov 2018 16:00:34 +0000 (11:00 -0500)
committerMohammad Salehe <salehe@cs.toronto.edu>
Wed, 7 Nov 2018 16:00:34 +0000 (11:00 -0500)
Change-Id: I250cef00bbea068196f54f442ed7d47fe0dd4aab
Issue-ID: MUSIC-148
Signed-off-by: Mohammad Salehe <salehe@cs.toronto.edu>
src/test/java/org/onap/music/unittests/TestVotingApp.java

index 19b10fe..e7a1e25 100644 (file)
@@ -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