chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
The following statement:

m_mockObject = MockManager.MockObject(GetType(<MyClass>))

Causes a dialog to appear telling me I'm trying to use an Enterprise feature on the community edition of TypeMock.

I've installed the community edition, and removed the evaluation license (to avoid the pop-ups).

Does this mean that the community edition of TypeMock does not support dynamic instance mocks (using mockobject)?

Thanks for the clarification.
asked by alastair.cameron@kal (3.4k points)

3 Answers

0 votes
Please run the test, when the dialog appears, click Ok, and post the output of the test run, there will be more information there
answered by scott (32k points)
0 votes
Kalido.DiwApiUnitTests.RefDataSuspenseProcessingTests.RefDataSuspenseProcessingTests.Test : TypeMock.TypeMockException :
*** Creating mocks inside a mocked method is an enterprise feature, to enable please enter license key.

==========================================

The line of code that causes the exception is:

m_mockObject = MockManager.MockObject(GetType(Kalido.Diw.RefDataSuspenseProcessing.SuspenseBatch))

==========================================

I'm not clear exactly what I'm doing that is disallowed? is it the MockObject call in general, or the fact that the code is in a class which is being instantiated from a parent mocked class?

Thanks.
answered by alastair.cameron@kal (3.4k points)
0 votes
It is simple,
you are creating a mock within a Dynamic Return Value or Within a ParameterChecker. This requires a license.
answered by scott (32k points)
...