Hello,
Seems I did not understand everything about how to write unit tests ...
Here's my problem : I want to test a class MA, a component, that has the
following code (excerpt) :
My test class MATest contains :
Here I'm looking up the Execution in order to set expectations on it for the
initialize to pass.
Problem is that I'm still getting this at test execution :
It seems that my initialize() method is called at lookup(), so how could I
set-up the expectations before they're actually exercised ? :
Thanks for help,
Jeremie
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Some-difficulties-with-unit-testing-tp749…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.