예제 #1
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);
 }
예제 #2
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);
 }
예제 #3
0
 @Test
 public void testDisconn() {
   db.connectDB();
   int result = db.disconnect();
   assertTrue(result == 0);
 }
예제 #4
0
 @Test
 public void testConn() {
   int result = db.connectDB();
   assertTrue(result == 0);
 }