1.

______________ method performs an action in response to an invocation.(a) describeTo(Description description)(b) invoke(Invocation invocation)(c) perform(String script)(d) where(String name, Object value)The question was posed to me during an online exam.This intriguing question originated from Maven Introduction in division Running JUnit Tests from Maven2 of JUnit

Answer»

Right answer is (B) INVOKE(Invocation invocation)

To explain I would say: invoke(Invocation invocation)returns the RESULT of the invocation, if not THROWING an exception.



Discussion

No Comment Found

Related InterviewSolutions