Home / CSE MCQs / JUnit MCQs :: Discussion

Discussion :: JUnit MCQs

  1. What is the purpose of assertArrayEquals("message, A, B)?
  2. A.
    Checks that message" is in both A and B
    B.
    Checks that message" is in A but not B
    C.
    Checks that message" is in B but not A
    D.
    Asserts the equality of the A and B arrays

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    Asserts the equality of the A and B arrays. The "message is displayed to the user.


Be The First To Comment