Choose a topic to test your knowledge and improve your Maven skills
What are exceptions?
________ can be useful in adding additional functionality which applies to every test within a test class.
______ is a programming paradigm which allows the separation of cross cutting concerns, hence, increasing modularity.
_______ describes a class of functions which when run modify other functions.
AOP forms a basis for ______
Custom JUnit rules can be created using _______
With the βexpectedβ argument, one cannot ________
The _________ rule can be used to test both exception type and message.
ExpectedException is found under which package?
The correct way to initialise an ExpectedException object is _____
What is timeout testing?
The _____ parameter is used along with the @Test annotation to test for timeouts.
@Test(timeout = 130) implies a time limit of ______
Timeout testing is _____
What applies the same timeout to every test method of a class?
A Timeout Rule is initialized by _______
Where is the Timeout class present?
The Timeout Rule implements which interface?
If a timeout which has been specified lapses before the completion of the test, its execution is interrupted with _____
What does a specified timeout of 0 imply?
______ is a library that contains a lot of helpful matcher objects , ported in several languages.
Hamcrest is not a _______ framework in itself.
The package for the assertThat() function is?
______ Hamcrest matcher can be used to match absolutely everything.
______ is used only to improve the readability of the statements.
Which Hamcrest matcher is just like the && operator?
______ checks to see if any of the contained matchers match.
________ traverses the meaning of the contained matchers.
The instanceOf matcher is equivalent to ________
______ is used to test object identity.
The JUnit hasItem() function is a _______
The package to which hasItem() function belongs is ________
Class JUnitMatchers extends _______
_____ is used for combining those matchers which must both pass.
_______ Hamcrest matcher tests for null values.
______ tests whether a JavaBean has a particular property.
To define a ________ in a JavaBean class, public getter and setter methods have to be supplied.
A/An __________ property is an array instead of a single value.
__________ tests whether a given string equals another one, ignoring the case.
_______ tests whether a given Map has a given entry.
Which Hamcrest core matcher checks if a number is equal to a number of some acceptable error?
assertThat(1.03, is(closeTo(1.0, 0.03))) is _____
assertThat(0.03, is(closeTo(1.0, 0.03))) is _____
The closeTo function is found under which package?
The isCloseTo class extends which base class?
The ___________ method of the TypeSafeMatcher class is made final.
The TypeSafeMatcher implements the __________ interface.
The ____________ matcher checks if a given key is in a map.
To write custom matcher _____________ has to be implemented.
_______ is the base class for all Matcher implementations.