Answers

Question and Answer:

  Home  JUnit

⟩ Can You Provide a List of Assertion Methods Supported by JUnit 4.4?

You should be able to answer this question by looking up the org.junit.Assert class API document. Here is a list of assertino methods supported by JUnit 4.4:

* assertEquals(expected, actual)

* assertEquals(message, expected, actual)

* assertEquals(expected, actual, delta)

* assertEquals(message, expected, actual, delta)

* assertFalse(condition)

* assertFalse(message, condition)

* assertNotNull(object)

* assertNotNull(message, object)

* assertNotSame(expected, actual)

* assertNotSame(message, expected, actual)

* assertNull(object)

* assertNull(message, object)

* assertSame(expected, actual)

* assertSame(message, expected, actual)

* assertTrue(condition)

* assertTrue(message, condition)

* fail()

* fail(message)

* failNotEquals(message, expected, actual)

* failNotSame(message, expected, actual)

* failSame(message)

 145 views

More Questions for you: