dimanche 4 janvier 2015

JUit test - division by zero. JAVA


public void div( int i )
{
acc = acc / i;
}


I want to make a test for this method. I did test for integers different than 0. But i have problem with test when i=0. Can you tell me how it should look?


Aucun commentaire:

Enregistrer un commentaire