示例#1
0
 // test the db against a entered credit of 755, rounds down to the 750 min credit rate
 @Test
 public void test755() {
   intrstRate = RateDAL.getRate(755);
   assertTrue(intrstRate == 3.75);
 }
示例#2
0
 // test the db against a entered credit of 800
 @Test
 public void test800() {
   intrstRate = RateDAL.getRate(800);
   assertTrue(intrstRate == 3.5);
 }
示例#3
0
 @Test // test the db against a entered credit of 725, rounds down to the 700 min credit rate
 public void test725() {
   intrstRate = RateDAL.getRate(725);
   assertTrue(intrstRate == 4);
 }
示例#4
0
 @Test // test the db against a entered credit of 750
 public void test750() {
   intrstRate = RateDAL.getRate(750);
   assertTrue(intrstRate == 3.75);
 }
示例#5
0
 @Test // test the db against a entered credit of 700
 public void test700() {
   intrstRate = RateDAL.getRate(700);
   assertTrue(intrstRate == 4);
 }
示例#6
0
 @Test // test the db against a entered credit of 675, rounds down to the 650 min credit rate
 public void test675() {
   intrstRate = RateDAL.getRate(675);
   assertTrue(intrstRate == 4.5);
 }
示例#7
0
 @Test // test the db against a entered credit of 650
 public void test650() {
   intrstRate = RateDAL.getRate(650);
   assertTrue(intrstRate == 4.5);
 }
示例#8
0
 @Test // test the db against a entered credit of 600
 public void test600() {
   intrstRate = RateDAL.getRate(600);
   // System.out.print
   assertTrue(intrstRate == 5);
 }
示例#9
0
 @Test // test to get all of the rates and make sure the db is not empty
 public void testGetRates() {
   assertTrue(RateDAL.getRates().size() > 0);
 }