'. '

Talk:APISeam

From APIDesign

Revision as of 21:21, 15 January 2009 by JaroslavTulach (Talk | contribs)
Jump to: navigation, search

Comments on CodeInjection <comments />


Varun said ...

Nice blog :)

--Varun 06:54, 11 January 2009 (CET)

Bernhard said ...

I have question:

Do you see any problems to run both tests testDecrementFourTimes, and testDecrementTwoTimesEnough in the same JVM?

How do you make the ServiceLoader unaware of the CountDownExtender when running the testDecrementFourTimes method?

--Bernhard 00:40, 13 January 2009 (CET)

Thanks for your question Bernhard. The magic is hidden in the
MockServices.setServices(Class...)
call. It generates appropriate META-INF/services/ files on the fly and as such the results returned from
ServiceLoader.load(...).iterator()
can be different at different time of test execution. In case you need this functionality, feel free to use NbJUnit.

--JaroslavTulach 21:21, 15 January 2009 (UTC)

evanx said ...

can't you "mentor" the submitters with some constructive feedback, requesting some refactoring

--evanx 10:37, 13 January 2009 (CET)

That is indeed good option in case you believe that the submitted idea is sane. If you do not trust that, CodeInjection is better than saying no to the patch.

--JaroslavTulach 21:21, 15 January 2009 (UTC)

Personal tools
buy