mercredi 19 octobre 2016

JavaTesting a method that accepts list as parameters

I need to test a method that accepts list as parameters.

Method:

public void shuffleCards(List<Integer> data, List<Integer> frequency) {

        Collections.shuffle(data);
        Collections.shuffle(frequency);

    }

Should i first create a list of data and frequency, and add values to them and then test or is there any onther way>

After testing i also need to create a table. My table looks like this. I am not sure if my table is correct either.enter image description here

Aucun commentaire:

Enregistrer un commentaire