🧪 jUnit MCQ Quiz Hub

Junit Mcq Question Set 3

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

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




2. ______ checks if an attribute is blank or not.




3. ______ check if an attribute value is true or not.




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




5. ________ is the base class for core filter readers.




6. ________ is a parameterized base class for core filter readers.




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




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




9. ______ reads the first n lines of a stream.




10. _______ is a Sax2 based project reader.




11. _______ is a “Single-check” Target executor implementation.




12. 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.




13. EasyMock instantiates an object based on an interface or class.




14. EasyMock relies heavily on the _______import feature of Java.




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




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




17. ______ 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.




18. ___________ 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.




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




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




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




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




23. _________ creates a control of the requested type.




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




25. anyObject() expects any double argument.




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




27. By default, a mock is thread safe.




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




29. ______ reports an argument matcher.




30. The ______ interface decides whether an actual argument is accepted.




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




32. ______ function expect the last invocation any times.




33. ______ sets stub behavior for the expected invocation.




34. ________ expect the last invocation between min and max times.




35. _____ expect the last invocation a specified number of times.




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




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




38. _______ records a call but returns nothing.




39. ______ expects the last invocation once.




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




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




42. ________ integrates jMock with JUnit 3.




43. ______ contains classes to help test concurrent code with jMock.




44. ________ is a class that “blitzes” an object by calling it many times, from multiple threads.




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




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




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




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




49. _______ Interface objects executes submitted Runnable tasks.




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