Beispiel #1
0
 // ver 3
 @Test
 public void testDivZeroVer3() {
   try {
     c.div(10, 1);
     System.out.println("Here is error");
   } catch (Exception e) {
   }
 }
Beispiel #2
0
 @Test
 public void testDiv() {
   assertTrue(2 == c.div(10, 5));
 }
Beispiel #3
0
 // ver 4
 @Test(expected = Exception.class)
 public void testDivZero() {
   c.div(10, 1);
 }
Beispiel #4
0
 @Test
 public void testAdd() {
   //		assertTrue("Right", , ));
   assertFalse("fdsfds", 67 == c.add(2, 5));
 }