Beispiel #1
0
 public void testDivisionByZero() {
   Sample4 sample4 = new Sample4();
   sample4.setEventLogger(logger);
   int a = 3;
   int b = 0;
   logger.logDivisionByZero(a);
   loggerControl.replay();
   sample4.div(a, b);
   loggerControl.verify();
 }
Beispiel #2
0
 public void testDefaultDivisionByZero() {
   Sample4 sample4 = new Sample4();
   int a = 3;
   int b = 0;
   sample4.div(a, b);
 }