MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Junit knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
______________ creates a mock object that implements the given interface with the specification is that order checking is disabled by default. |
| A. | createMock(Class<T> toMock) |
| B. | createMock(MockType type, Class<T>toMock) |
| C. | createMock(String name, Class<T> toMock) |
| D. | createMock(String name, MockType type, Class<T> toMock) |
| Answer» D. createMock(String name, MockType type, Class<T> toMock) | |
| 2. |
__________________ creates a mock object, of the requested type and name which are passed, which also has implementations of the given interface or extends the given class. |
| A. | createMock(Class <T> toMock) |
| B. | createMock(MockType type, Class<T> toMock) |
| C. | createMock(String name, Class<T> toMock) |
| D. | createMock(String name, MockType type, Class<T> toMock) |
| Answer» E. | |
| 3. |
When we re talking about mock objects, a/an _________ is a feature built into the mock that verifies whether the external class calling this mock has the correct behavior. |
| A. | Expectation |
| B. | Explanation |
| C. | Behavior |
| D. | Amorous |
| Answer» B. Explanation | |