mock
B2Meanings
-
1
adj
constituting a copy or imitation of something
boys in mock battle
-
2
noun
the act of mocking or ridiculing
they made a mock of him
-
3
verb
treat with contempt
The new constitution mocks all democratic principles
-
4
verb
imitate with mockery and derision
The children mocked their handicapped classmate
-
5
noun
An imitation, usually of lesser quality.
Is tortured thirst itself too sweet a cup? Gall, and more bitter mocks, shall make it up.
-
6
noun
Mockery; the act of mocking.
Fooles make a mocke at ſinne: but among the righteous there is fauour.
-
7
noun
Ellipsis of mock examination.
He got a B in his History mock, but improved to an A in the exam.
-
8
noun
A mockup or prototype; particularly, ellipsis of mock object, as used in unit testing.
You can, if you must, create a mock that derives from a concrete class. The problem is that the resulting class represents a mix of production and mocked behavior, a beast referred to as a partial mock.
Etymology
From Middle English mokken, from Old French mocquer, moquier (“to deride, jeer”), from Middle Dutch mocken (“to mumble”) or Middle Low German mucken (“to grumble, talk with the mouth half-opened”), both from Proto-West Germanic *mokkijan, *mukkijan (“to low, bellow; mumble”), from Proto-Germanic *mukkijaną, *mūhaną (“to low, bellow, shout”), from Proto-Indo-European *mūg-, *mūk- (“to low, mumble”). Cognate with Dutch mokken (“to sulk; pout; mope; grumble”), Old High German firmucken (“to be stupid”), Modern German mucksen (“to utter a word; mumble; grumble”), West Frisian mokke (“to mope; sulk…