JBOSGi 2.5.1.Final (WildFly 10) and JBOSGi 2.4.1.Final (WildFly 9) containing the fix for JBOSGI-792 Initial bundles fail to resolve if runtime name differs have been released.
If anyone needs this fix for JBOSGI 2.3.1.Final (WildFly 8) please let me know.
I am pleased to announce the release of JBOSGi 2.5.0.Final for WildFly 10.
This release targets WildFly 10.0.0, and contains WildFly 10-related integration changes.
Continue reading “JBOSGi 2.5.0.Final for WildFly 10 Released!”
You have a class whose API you want to verify:
You write the following test fully expecting it to pass. Alas, the
method_Y assertion fails.
obj = Class_A()
mock = MagicMock(spec_set=obj, wraps=obj)
This is because the Python Unittest Mock, while wrapping
mock.method_X(), Mock uses
obj in the
__self__ of the
method_Y binding. As a result the
self value passed to
method_X is that of the
obj and not
mock and the call to
method_Y is therefore invisible to the Mock.
Continue reading “How to spy on Mock-wrapped method calls in Python”