MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Junit knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
__________ is an interface which defines a state machine that is used to constrain the order of invocations. |
| A. | Sequence |
| B. | States |
| C. | Expectations |
| D. | Mockery |
| Answer» C. Expectations | |
| 2. |
___________ interface defines a sequence of expectations. |
| A. | Sequence |
| B. | States |
| C. | Expectations |
| D. | Mockery |
| Answer» B. States | |
| 3. |
__________ is a naming scheme in which the implicit name for a mock object is the mocked type s name prepend with mock . |
| A. | RetroNamingScheme |
| B. | CamelCaseNamingScheme |
| C. | JavaReflectionImposteriser |
| D. | LastWordNamingScheme |
| Answer» B. CamelCaseNamingScheme | |
| 4. |
___________ is a naming scheme in which the implicit name for a mock object is the last word of the mocked type s name in lower case. |
| A. | AssertionErrorTranslator |
| B. | CamelCaseNamingScheme |
| C. | JavaReflectionImposteriser |
| D. | LastWordNamingScheme |
| Answer» E. | |
| 5. |
__________ is an ExpectationErrorTranslator that doesn t do any translation. |
| A. | AssertionErrorTranslator |
| B. | CamelCaseNamingScheme |
| C. | CurrentStateMatcher |
| D. | IdentityExpectationErrorTranslator |
| Answer» E. | |