1.

The package for the assertThat() function is?(a) org.hamcrest.CoreMatchers.assertThat(b) org.junit.Assert.assertThat(c) org.junit.JunitMatchers.assertThat(d) org.junit.hasItem.assertThatThe question was posed to me during an interview.Question is from Hamcrest Matchers in section Mastering JUnit of JUnit

Answer»

The correct option is (B) org.JUNIT.ASSERT.assertThat

Best explanation: The asserThat() function is a PART of the main JUnit core assert FUNCTIONS.



Discussion

No Comment Found

Related InterviewSolutions