πŸ§ͺ Maven MCQ Quiz Hub

Maven Mcq Set 1

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

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





βœ… Correct Answer: 4

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 3

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 3

________ class is an Action that executes a BeanShell script.





βœ… Correct Answer: 1

______ method performs an action in response to an invocation.





βœ… Correct Answer: 2

The invoke method throws which exception?





βœ… Correct Answer: 3

_____ creates an action that performs the given script.





βœ… Correct Answer: 3

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





βœ… Correct Answer: 4

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





βœ… Correct Answer: 2

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





βœ… Correct Answer: 1

The exception thrown by the ActionSequence mehod is _____





βœ… Correct Answer: 2

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





βœ… Correct Answer: 2

_______ performs multiple actions every time it is invoked.





βœ… Correct Answer: 3

________ returns an Enumeration over a collection.





βœ… Correct Answer: 4

________ returns an iterator over a collection.





βœ… Correct Answer: 3

The VoidAction class throws an exception.





βœ… Correct Answer: 1

_____ translates ExpectationErrors into JUnit’s AssertionFailedErrors.





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

_____ is a TestCase that supports testing with mock objects.





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 2

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





βœ… Correct Answer: 3

Stubs test the behavior of faked objects.





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

______ contains helper classes for ant properties.





βœ… Correct Answer: 1

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





βœ… Correct Answer: 3

_____ is a thread local class containing local properties.





βœ… Correct Answer: 4

______ is the class to resolve properties in a map.





βœ… Correct Answer: 2

______ parses properties using a collection of expanders.





βœ… Correct Answer: 4

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





βœ… Correct Answer: 3

_______ interface is used by ant attributes.





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

______ is an abstract class for if/unless attributes.





βœ… Correct Answer: 2

JUnit runners are available in which package?





βœ… Correct Answer: 1

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





βœ… Correct Answer: 3

What is a FaΓ§ade in JUnit?





βœ… Correct Answer: 2

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





βœ… Correct Answer: 3

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

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





βœ… Correct Answer: 4

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





βœ… Correct Answer: 3

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





βœ… Correct Answer: 3

What information does an object of the Failure class contain?





βœ… Correct Answer: 2