lundi 16 mars 2020

How to testing public methods when they have private methods dependency

Ex: Class Person { private String name;

public void getFancyname(String name){
    generateName();
}

private generateName(){ ... }

Aucun commentaire:

Enregistrer un commentaire