Patent ID: 8935573
Filing Date: 2015-01-13
Classification: G06F

Abstract:
1. A method of unit testing a mock object using cached data, the method comprising: during execution of a unit test, receiving from the unit test a first request referencing a mock object; returning to the unit test an instance of the mock object and initial cached mock object data, wherein the initial cached mock object data includes first data for a real object represented by the mock object; collecting second data for the real object represented by the mock object; comparing the second data for the real object to the initial cached mock object data; responsive to determining that at least one aspect of the second data for the real object does not correspond to the initial cached mock object data; via a processor, updating the cached mock object data with the second data for the real object; and indicating to the unit test that the initial cached mock object data returned to the unit test is unreliable.