Invention Grant
US08935573B2 Reliable unit testing through cached mocking 有权
可靠的单元测试通过缓存嘲笑

Reliable unit testing through cached mocking
Abstract:
During execution of a unit test, receiving from the unit test a first request referencing a mock object. An instance of the mock object and initial cached mock object data is returned to the test unit, wherein the initial cached mock object data includes first data for a real object represented by the mock object. Second data for the real object represented by the mock object is collected. The second data for the real object is compared 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, the cached mock object data is updated with the second data for the real object. An indication can be provided to the unit test that the initial cached mock object data returned to the unit test is unreliable.
Public/Granted literature
Information query
Patent Agency Ranking
0/0