Which method of Assert class checks that a condition is true?

DWQA QuestionsCategory: Continuous IntegrationWhich method of Assert class checks that a condition is true?
Editor Staff asked 2 months ago

Which method of Assert class checks that a condition is true?
1. void assert(boolean condition)
2. void assert(boolean condition)
3. void assertTrue(boolean condition)
4. void assertChecks(boolean condition)

1 Answers
Editor Staff answered 2 months ago

void assertTrue(boolean condition)