mercredi 18 novembre 2015

For loop Testing in java

 public void numberOfChoices() {

    for (int i = 0; i < 10; i++) {
        guess = scan.nextInt();
        print(guess, num);

    }

}

how can i test this for loop in junit. my method should be void.

Aucun commentaire:

Enregistrer un commentaire