RELIABLE UNIT TESTING THROUGH CACHED MOCKING

Patent №

US 8,935,573

Granted

2015-01-13

Filed 2012

Owner

INTERNATIONAL BUSINESS MACHINES CORPORATION

AI components

3

kr · planning · hardware

Assignment

Recorded

Dataset

AIPD

2023_r1 edition

Application

13597716

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.

AI classification

Planning1.00
Knowledge representation0.93
AI hardware0.73
Evolutionary computation0.36
Natural language0.19
Machine learning0.01
Vision0.00
Speech0.00

Ownership

INTERNATIONAL BUSINESS MACHINES CORPORATION

assignment · 288680854

Assignors

HORSMAN, STEVEN J., SHARP, KATHLEEN

On an employer assignment, the assignors are typically the inventors.

From the same owner

© 2026 NYSGPT2525 LLC