Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 2.1.0
-
Fix Version/s: 2.1.0
-
Component/s: JMock 2.x.x Library
-
Labels:None
-
Environment:Winows, Java 5
Description
If I create a mock via
mockery = new Mockery() {{
setImposteriser(ClassImposteriser.INSTANCE);
}};
manager = mockery.mock(AbstractSynchronizedNotificationManager.class);
the instance variables of manager or better AbstractSynchronizedNotificationManager are not initalized and the constructor is not called.
That's what it's meant to do. Please read the documentation.