MCQs
Total Questions : 10
Answer: Option A. -> IMockBuilder
The MockBuilder class implements the ImockBuilder interface.
Answer: Option A. -> InterruptedException
If the exception is thrown, the unfinished tasks are cancelled.
Answer: Option B. -> Static
All EasyMock imports are static imports.
Answer: Option A. -> newCapture()
The newCapture method without arguments creates a new capture.
Answer: Option D. -> createMock(String name, MockType type, Class toMock)
The name is passed as a parameter in the function definition.
Answer: Option C. -> invokeAll(Collection? extends Callable tasks)
Future.isDone() is true for each element of the returned list.
Answer: Option C. -> once()
This is the default in EasyMock.
Answer: Option D. -> NullPointerException
This exception is thrown if the command passed as argument is null.
Answer: Option B. -> DeterministicExecutor
The DeterministicExecutor executes commands on the thread calling runPendingCommands.
Answer: Option A. -> times(int count)
times (int count) specifies the number of times to expect the last invocation via the count argument.