Home / CSE MCQs / Spring MCQs :: Discussion

Discussion :: Spring MCQs

  1. Annotation for SpringJUnit4ClassRunner:-
  2. A.
    @Run
    B.
    @RunWith
    C.
    All of the mentioned
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    For this option, you have to explicitly specify a Spring-specific test runner for running your test”SpringJUnit4ClassRunner. You can specify this in the @RunWith annotation at the class level.


Be The First To Comment