e01.org

Mock object

In computer programming, a mock object is an object that imitates a production object in limited ways. A programmer might use a mock object as a test double for software testing. A mock object can also be used in generic programming.

In computer programming, a mock object is an object that imitates a production object in limited ways. A programmer might use a mock object as a test double for software testing. A mock object can also be used in generic programming. ==Analogy== A mock object can be useful to the software tester like a car designer uses a crash test dummy to simulate a human in a vehicle impact.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Mock object". 1791299705. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1378873053

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·