The dispose method prepares the editing context for destruction, making it unusable as a result. Thus, one can expect unpredictable outcomes if the code under test calls this method, including the inability to clean up properly after the test execution. This fix overrides the EOEditingContext.dispose implementation to do nothing when invoked by the code under test.
The
dispose
method prepares the editing context for destruction, making it unusable as a result. Thus, one can expect unpredictable outcomes if the code under test calls this method, including the inability to clean up properly after the test execution. This fix overrides theEOEditingContext.dispose
implementation to do nothing when invoked by the code under test.