Explore topic-wise MCQs in Junit.

This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Junit knowledge and support exam preparation. Choose a topic below to get started.

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)
Answer» C. perform(String script)
2.

___________ class is an Action that executes a BeanShell script.

A. ScriptedAction
B. Scripted
C. Action
D. ScriptedActionClass
Answer» B. Scripted