vendredi 1 janvier 2016

How to test and mock 2 private methods in the same class in Java? [duplicate]

This question already has an answer here:

My java class has 2 private methods, method1 and method2. method1 invokes method2. How can I test method1 at the same time mocking method2 using any of the java testing frameworks?

Aucun commentaire:

Enregistrer un commentaire