Example #1
0
 @Test
 public void testEnsureHighestThree() {
   db.updateDB(2);
   db.updateDB(3);
   db.updateDB(4);
   ArrayList<Integer> checker = db.getScores();
   assertTrue(checker.get(0) == 4);
   assertTrue(checker.get(1) == 4);
   assertTrue(checker.get(2) == 4);
 }
Example #2
0
 @Test
 public void testUpdateandGetScores() {
   db.updateDB(1);
   ArrayList<Integer> checker = db.getScores();
   System.out.println(checker.get(0));
   assertTrue(checker.get(0) == 4);
   assertTrue(checker.get(1) == 4);
   assertTrue(checker.get(2) == 4);
 }