🧪 Maven MCQ Quiz Hub

Maven Mcq Set 1

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

1. The __________ package contains plugins that make it easier to use jMock with legacy code.




2. _____________ class enables to imposterise abstract and concrete classes without calling the constructors of the mocked class.




3. ________ method reports if the Imposteriser is able to imposterise a given type.




4. ___________ creates an imposter for a given type that forwards Invocations to an Invokable object.




5. The mockObject parameter of imposterise() is the class representing the static type of the imposter.




6. The ancilliaryTypes parameter of the imposterise() function must all be interfaces.




7. The __________ package contains plugins that make it easier to write custom actions by scripting their behaviour with BeanShell.




8. ________ class is an Action that executes a BeanShell script.




9. ______ method performs an action in response to an invocation.




10. The invoke method throws which exception?




11. _____ creates an action that performs the given script.




12. _______ defines a variable that can be referred to by the script.




13. _______ package contains actions that fake the behavior of mocked invocations.




14. ______ returns the next of a sequence of elements each time it is invoked.




15. The exception thrown by the ActionSequence mehod is _____




16. _____ is a partial implementation of the Action interface that making it easy to implement actions specific to applications with inline anonymous classes.




17. _______ performs multiple actions every time it is invoked.




18. ________ returns an Enumeration over a collection.




19. ________ returns an iterator over a collection.




20. The VoidAction class throws an exception.




21. _____ translates ExpectationErrors into JUnit’s AssertionFailedErrors.




22. _______ is a Mockery that reports expectation errors as JUnit 3 test failures.




23. _____ is a TestCase that supports testing with mock objects.




24. ______ is a TestCase that verifies postconditions after the test has run and before the fixture has been torn down.




25. To write a mock object test in JUnit 3, MockObject needs to be extended.




26. A _________ is a JUnit Rule that manages JMock expectations and allowances.




27. The _____ class provides factory methods for the executor services provided in the package.




28. A _____ offers services for the components it’s hosting, such as lifecycle, security, transaction, distribution, and so forth.




29. Stubs work well to ________ a given class for testing and asserting the state of its instances.




30. Stubs test the behavior of faked objects.




31. The biggest advantage of mock objects over in-container testing is that mocks don’t require a ________ container in order to execute tests.




32. ______ contains helper classes for ant properties.




33. ______ is the interface to a class to get a property in apache ant.




34. _____ is a thread local class containing local properties.




35. ______ is the class to resolve properties in a map.




36. ______ parses properties using a collection of expanders.




37. _______ is a class to represent a null and to stop the chain of lookups.




38. _______ interface is used by ant attributes.




39. _______ class is used to indicate that the XML namespace (URI) can be used to look for namespace attributes.




40. ______ is an abstract class for if/unless attributes.




41. JUnit runners are available in which package?




42. To start a test case as JUnit 3.8 test case which runner is required?




43. What is a Façade in JUnit?




44. To create a custom test runner which class needs to be extended?




45. What type of object is returned on completion of a test?




46. To listen to events during a test, which class has to be extended?




47. When does the wasSuccessful() method of the Runner class return true?




48. To run the file TestClass.class from the command line, we have to type what?




49. What does the getRunCount() method of the Result return?




50. What information does an object of the Failure class contain?