vendredi 14 décembre 2018

Testing method which calls protected method form another class

class A {
protected obj init()
}

class B {
public void testingThis(){
..stuff
obj = a.init()
moreStuff(obj)
}

I am testing class B. I am having trouble doing so because it used class A's method to get an object. How can I solve this? p.s can't change visibility, cant put in same package.





Aucun commentaire:

Enregistrer un commentaire