Which of the following checks if the condition is TRUE?

17. Which of the following checks if the condition is TRUE?

  1. void assertEquals(boolean expected,boolean actual)
  2. void assertTrue(boolean condition)
  3. void assertFalse(boolean condition)
  4. void assertNull(Object obj)

Answer: B) void assertTrue(boolean condition)

Explanation:

void assertTrue(boolean condition) checks if the condition is TRUE.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.