samedi 25 juillet 2020

How to mock classA object which is created in classB?

I have something as,

classB {
    classA a = new classA();
    ...
}

classA {
    ...
}

I would like to write junit on classB. How to mock object a of classA?

Aucun commentaire:

Enregistrer un commentaire