I have the following class:
class MyClass { public void doIt() { methodOne(); methodTwo(); methodThree(); } private void methodOne() {
My intention is to verify that calling doIt () will call the metodOne (), methodTwo (), and methodThree () methods in that order.
I use mockito for ridicule. Does anyone know how I can test this scenario?
java junit mockito mocking
Lefteris laskaridis
source share