lundi 30 novembre 2015

How to test private method using PowerMock which has object creation?

I have encapsulated the object creation into new method as specified in http://ift.tt/1tcXHI0 [Pattern 1: using one-line methods for object creation]

I have used private before makeFoo method. Which is making my work harder.

Wasn't private necessary for makeFoo method? If so how people handled it?

Aucun commentaire:

Enregistrer un commentaire