1.

___________ creates an imposter for a given type that forwards Invocations to an Invokable object.(a) canImposterise(Class type)(b) Imposterise(Class type)(c) imposterise(Invokable mockObject, Class mockedType, Class… ancilliaryTypes)(d) imposter()The question was posed to me in an internship interview.I need to ask this question from Maven Introduction topic in section Running JUnit Tests from Maven2 of JUnit

Answer»

Correct option is (C) imposterise(Invokable mockObject, Class mockedType, Class>… ancilliaryTypes)

For explanation I would SAY: imposterise(Invokable mockObject, Class mockedType, Class>… ancilliaryTypes) returns a new IMPOSTER. The imposter must IMPLEMENT the mockedType and all the ancialliaryTypes.



Discussion

No Comment Found

Related InterviewSolutions