πŸ§ͺ jUnit MCQ Quiz Hub

Junit Mcq Question Set 3

Choose a topic to test your knowledge and improve your jUnit skills

The _____________ is the list of work the Development Team must address during the next Sprint.





βœ… Correct Answer: 2

______ checks if an attribute is blank or not.





βœ… Correct Answer: 2

______ check if an attribute value is true or not.





βœ… Correct Answer: 3

______ is an interface indicating that a reader may be chained to another one.





βœ… Correct Answer: 4

________ is the base class for core filter readers.





βœ… Correct Answer: 2

________ is a parameterized base class for core filter readers.





βœ… Correct Answer: 3

______ class is used for assembling the constants declared in a Java class in key1=value1(line separator)key2=value2 format.





βœ… Correct Answer: 1

_______ converts text to local OS formatting conventions along with repairing the text damaged by file transfer programs.





βœ… Correct Answer: 4

______ reads the first n lines of a stream.





βœ… Correct Answer: 2

_______ is a Sax2 based project reader.





βœ… Correct Answer: 4

_______ is a β€œSingle-check” Target executor implementation.





βœ… Correct Answer: 1

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.





βœ… Correct Answer: 1

EasyMock instantiates an object based on an interface or class.





βœ… Correct Answer: 1

EasyMock relies heavily on the _______import feature of Java.





βœ… Correct Answer: 2

To use the createMock method of EasyMock we need to import ______





βœ… Correct Answer: 1

______ method creates a mock object that implements the given interface, order checking is enabled by default.





βœ… Correct Answer: 4

______ is used for the creation of a mock object, with the specification of it being of the requested type, which has implementations of the given interface or extends the given class.





βœ… Correct Answer: 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.





βœ… Correct Answer: 4

_____ creates a mock object that implements the given interface with the specification is that order checking is disabled by default.





βœ… Correct Answer: 3

createMock(String name, Class<T> toMock) throws ______ exception.





βœ… Correct Answer: 2

______ creates a mock builder allowing to create a partial mock for the given class or interface.





βœ… Correct Answer: 1

The ____________ interface is used in the creation of partial mocks with EasyMock.





βœ… Correct Answer: 1

_________ creates a control of the requested type.





βœ… Correct Answer: 2

_____ returns the expectation setter for the last expected invocation in the current thread.





βœ… Correct Answer: 4

anyObject() expects any double argument.





βœ… Correct Answer: 2

______ expects a comparable argument greater than or equal the given value.





βœ… Correct Answer: 3

By default, a mock is thread safe.





βœ… Correct Answer: 1

________ create a new capture instance that will keep only the last captured value.





βœ… Correct Answer: 1

______ reports an argument matcher.





βœ… Correct Answer: 3

The ______ interface decides whether an actual argument is accepted.





βœ… Correct Answer: 4

The __________ interface allows setting expectations for an associated expected invocation.





βœ… Correct Answer: 2

______ function expect the last invocation any times.





βœ… Correct Answer: 3

______ sets stub behavior for the expected invocation.





βœ… Correct Answer: 4

________ expect the last invocation between min and max times.





βœ… Correct Answer: 2

_____ expect the last invocation a specified number of times.





βœ… Correct Answer: 1

________ sets a stub object that will be used for the calculation of the answer for the expected invocation.





βœ… Correct Answer: 3

__________ sets a stub object implementing the same interface as the mock.





βœ… Correct Answer: 4

_______ records a call but returns nothing.





βœ… Correct Answer: 1

______ expects the last invocation once.





βœ… Correct Answer: 3

_____ sets a return value that will be returned for the expected invocation.





βœ… Correct Answer: 1

______ contains implementations of the core interfaces that are used to adjust or extend jMock’s basic functionality.





βœ… Correct Answer: 3

________ integrates jMock with JUnit 3.





βœ… Correct Answer: 4

______ contains classes to help test concurrent code with jMock.





βœ… Correct Answer: 1

________ is a class that β€œblitzes” an object by calling it many times, from multiple threads.





βœ… Correct Answer: 1

_____ class is an Executor that executes commands on the thread that calls runPendingCommands or runUntilIdle.





βœ… Correct Answer: 2

______ Exception is thrown to report that a DeterministicScheduler has been asked to perform a blocking wait, which is not supported.





βœ… Correct Answer: 1

_______ is a ScheduledExecutorService that executes commands on the thread that calls runNextPendingCommand, runUntilIdle or tick.





βœ… Correct Answer: 1

______ is a ThreadingPolicy that makes the Mockery thread-safe and helps tests synchronize with background threads.





βœ… Correct Answer: 4

_______ Interface objects executes submitted Runnable tasks.





βœ… Correct Answer: 1

The Executor implementations provided implement ____________ which is a more extensive interface.





βœ… Correct Answer: 1