Test methods typically have three conceptual sections. First a “setup” section where you wire your mocks and other test data, then an “execute” section where you actually execute your code under test, and then a “verify” section, where you assert the side effects of the CUT execution.
Your test method appears to only have the “setup” section. You’re wiring your mocks, but you never actually run anything that needs to be tested.
I would hope that this is just a mistake in what you posted here.
In any case, if you don’t understand what is happening in your test, you should step through the code of the test and CUT in your debugger (Eclipse, Netbeans, et cetera). That should help you understand what code is being executed, and where you are getting values from.
--
You received this message because you are subscribed to the Google Groups "PowerMock" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
powermock+...@googlegroups.com.
To post to this group, send email to
powe...@googlegroups.com.
Visit this group at http://groups.google.com/group/powermock.
For more options, visit https://groups.google.com/d/optout.